You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
datastoreId:
anyOf:
- type: string
nullable: true
- type: integer
format: int64
nullable: true
description: The ID of the specific datastore. Auto selection can be specified as auto or autoCluster (for clusters).
I am wondering if the use of anyOf here was intentional.
Given that the property relates to an ID of some kind, it seems more appropriate that the oneOf schema type should be used.
Suggested change:
datastoreId:
oneOf:
If the use of anyOf was intentional, for my understanding, would you please be able to explain why anyOf was selected as the appropriate schema type?
Given the following variations that the anyOf schema type would allow with the nullable string and integer types used, I am confused as to why, in particular, both a string and an integer would be valid in the request body:
Valid with anyOf:
1. null string
2. string
3. null int
4. int
5. null int + null string
6. int + null string
7. null int + string
8. int + string
The use of the schema in components/schemas/instanceCreateVolume.yaml appears to come from a PUT request to the /api/catalog-item-types/{id} endpoint:
While trying to work with your OpenAPI documentation, I have encountered the use following use of anyOf in
components/schemas/instanceCreateVolume.yaml
:https://github.com/gomorpheus/morpheus-openapi/blob/main/components/schemas/instanceCreateVolume.yaml
I am wondering if the use of anyOf here was intentional.
Given that the property relates to an ID of some kind, it seems more appropriate that the oneOf schema type should be used.
Suggested change:
If the use of anyOf was intentional, for my understanding, would you please be able to explain why anyOf was selected as the appropriate schema type?
Given the following variations that the anyOf schema type would allow with the nullable string and integer types used, I am confused as to why, in particular, both a string and an integer would be valid in the request body:
The use of the schema in
components/schemas/instanceCreateVolume.yaml
appears to come from a PUT request to the/api/catalog-item-types/{id}
endpoint:https://github.com/gomorpheus/morpheus-openapi/blob/main/openapi.yaml#L157
https://github.com/gomorpheus/morpheus-openapi/blob/main/paths/api%40catalog-item-types%40id.yaml#L43
The text was updated successfully, but these errors were encountered: