Operation's Parameter schemas allows nested object schemas?
See original GitHub issueIs allowed to add a schema like this inside Parameter Object?
type: object
properties:
name:
type: string
surname:
type: string
aList:
type: array
items:
type: string
If yes, after the first level of tree, i have to take care about explode
field? If explode = true
, what I have to expect in this case?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
OpenAPI Specification - Version 3.0.3 - Swagger
The available paths and operations for the API. components, Components Object, An element to hold various schemas for the specification.
Read more >GraphQL schema basics
Your GraphQL server uses a schema to describe the shape of your available data. This schema defines a hierarchy of types with fields...
Read more >Schema allows additional properties
Issue ID: v3-schema-object-additionalproperties-true ... combining operations inside each other (for example, allOf with anyOf nested in the properties), ...
Read more >Operations on nested data - SAP Help Portal
The FROM clause in the Query transform editor allows you to specify the tables and views to use in a join statement. ......
Read more >Understanding JSON Schema
When you start developing large schemas with many nested and ... There are a number of online JSON Schema tools that allow you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@slinkydeveloper The
style
property is intended to capture a number of common serialization approaches, with the possibility to cleanly add more in the future. It does not cover all scenarios. For more complex scenarios, such as the one you describe, it is necessary to use acontent
object and use the media-type identifier as a reference to an external specification that describes the serialization format.If in the future, if we enable alternate schemas, it may be possible to describe formats such as yours with content embedded in the definition. Currently this is not possible without using a specification extension.
How nested parameter style works? For example, assume that we want to create a schema for this nested arrays query parameter:
parameter_name=value11|value12,value21|value22,value31|value32
When i write tooling, how I have to expect a declaration of a parameter similar to this? As i can see, “style” is allowed only in Parameter object and not inside Schema object. Also, IMHO I think that spec need a little more examples on styles.