question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Operation's Parameter schemas allows nested object schemas?

See original GitHub issue

Is 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:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
darrelmillercommented, May 30, 2017

@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 a content 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.

0reactions
slinkydevelopercommented, May 27, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found