`oneOf` support in openapi2kong parameter schemas
The request validator plugin configuration generated by openapi2kong is invalid when using oneOf
/test/data-type:
get:
parameters:
- in: query
name: mixed_number
required: true
schema:
oneOf:
- type: string
- type: integer
Kong Gateway does not support mixed content types in a single parameter (FTI-2182), so go-apiops should return an error instead of generating an invalid configuration.
Acceptance Criteria
- [ ] Parameter queries that use
oneOfto specify multipletypefields in a single parameter result in an error being returned
This logic (checking for oneOf) will not suffice, it should match the logic of the request validator plugin to prevent edge cases.
We’re playing whack-a-mole with bug reports. Can you help us enumerate the options?
see docs: https://docs.konghq.com/hub/kong-inc/request-validator/configuration/#config-parameter_schema-schema
The top-level jsonschema object MUST have a type property. An edgecase to be aware of is that the top-level can actually be a $ref, in that case, follow the refs and ensure that the first non-ref has a type property. See internal ticket FTI-5958
Also; only applies to parameter schemas.