-
-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Description
Description
OpenAPI 3.1 specification defines Schemas properties nullable types as described below to follow JSON Schema 4.
API Platform Admin openAPI schema Analyzer does not process nullable type and fallback to string
type instead of extracting type from the non-nullable type. This introduces wrong input type when using Component like InputGuesser for example.
Schema Analyzer should take into account nullable types.
Example
# OpenAPI specification example
[…]
properties:
myProperty:
type:
- integer
- null
# Before fix
schemaAnalyze field type is `string`
# After fix
schemaAnalyzer field type is `integer`
Metadata
Metadata
Assignees
Labels
No labels