Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index of examples to create #88

Open
18 tasks
darrelmiller opened this issue Oct 28, 2021 · 3 comments
Open
18 tasks

Index of examples to create #88

darrelmiller opened this issue Oct 28, 2021 · 3 comments

Comments

@darrelmiller
Copy link
Member

darrelmiller commented Oct 28, 2021

Suggestions for scenarios that we could create examples for.

  • Info examples
    • Valid Version numbers
    • Example License identifiers
  • Servers Examples
    • Sandbox vs Prod
  • Paths Examples
  • Parameter Examples
    • Non escaped path parameter
    • JSON Object query parameter
    • Date query parameter
    • Boolean query parameter
  • Content examples
    • Heterogenous collection of JSON objects
    • Empty collection
    • Paged Collection
  • Response Examples
    • Long running operation (202)
    • Created example (201)
    • [ ]
  • Security Examples
    • Using scopes
    • API Key
    • Client Credential OAuth2
    • Auth Code OAuth2
  • Tags Examples
    • Global Tags
    • Inline Tags
@darcyrush
Copy link

Asides from adding an example of examples for multipart/form-data requestBody (#2734) I would also like to suggest adding an example of examples for parameters using pattern to describe URL parameter nested objects (#1706) like url.com?filter[query][eq]=value.

Since deeply nested objects are not agreed on or supported by OAS, but are widely used, even a "simple" regex example would convey that this is not officially supported, whilst still providing a starting point that users can use to implement some basic validation when using tooling.

@lornajane
Copy link
Collaborator

Where were these examples going to be used? I wonder if these might be something for learn.openapis.org

@lornajane
Copy link
Collaborator

@darrelmiller Could you please put this one on the Learn repo? I think we're more likely to be able to action it there.

@handrews handrews transferred this issue from OAI/OpenAPI-Specification Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants