Skip to content

More and complete examples for serialization styles #100

Open
@slinkydeveloper

Description

@slinkydeveloper

OAS 3 include more complex serialization styles than Swagger 2.0 . Can you include in the spec more complete examples for every in/serialization style/explode/type combination on how a request is supposed to be done? Also where parameters need to be encoded or not. For example:

Path parameters

style exploded example path example uri request example array uri request example object uri request
matrix true /{color} /;color=blue /;color=blue,black,brown /;color=R,100,G,200,B,150

Cookie parameters

style exploded example cookie header example array cookie header example object cookie header
form true Cookie: color=blue Cookie: color=blue; color=red; color=green Cookie: R=100; G=100; B=200

Query parameters

style exploded example uri example array uri example object uri
form false /path?color=blue /path?color=blue%2Cblack%2Cbrown /path?color=R%2C100%2CG%2C200%2CB%2C150

Of course this examples can be included outside the spec markdown, but they can be really useful for tool implementers. Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions