Module: GrapeOAS::Constants::NullableStrategy
- Defined in:
- lib/grape_oas/constants.rb
Overview
Nullable representation strategies for different OpenAPI versions. Passed via ‘nullable_strategy:` option to control how nullable fields are represented in the generated schema.
Constant Summary collapse
- KEYWORD =
OAS 3.0: emits ‘“nullable”: true` alongside the type
:keyword- TYPE_ARRAY =
OAS 3.1: emits ‘“type”: [“string”, “null”]` (JSON Schema style)
:type_array- EXTENSION =
OAS 2.0: emits ‘“x-nullable”: true` extension
:extension