Skip to content

feat: add nullable to model config params#2452

Open
diogodanielsoaresferreira wants to merge 3 commits into
TimefoldAI:mainfrom
diogodanielsoaresferreira:add_nullable_to_model_config_param
Open

feat: add nullable to model config params#2452
diogodanielsoaresferreira wants to merge 3 commits into
TimefoldAI:mainfrom
diogodanielsoaresferreira:add_nullable_to_model_config_param

Conversation

@diogodanielsoaresferreira

Copy link
Copy Markdown
Contributor

* @param arrayItemType the OpenAPI schema type for array items
* @param format the data format which further specifies the schema type
* @param schemaTypeRef the OpenAPI schema type reference (used when the schema type is not a primitive type)
* @param nullable whether the parameter accepts {@code null} as a value, as defined by the OpenAPI schema

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nullable has been removed from OpenAPI in 3.1 so not sure we should rely on it https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just noticed that platform uses 3.1 and models use still 3.0.3 ... might be worth to address this at some point, but we might be ok to keep it as is for now. @rsynek FYI

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I didn't know that! I took a look at the migration guide and it seems that there are other things that will also have to be changed when we migrate to 3.1. I would say to implement now as is and when we migrate, we can change everything (type arrays, examples).

@mswiderski mswiderski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving as this is valid for the OpenAPI version used by models

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants