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

@types/swagger-schema-official Add specific values for "in" on Parameters acording to swagger spec #33246

Merged

Conversation

cylon3035
Copy link

@cylon3035 cylon3035 commented Feb 20, 2019

In Parameter union type Parameter = BodyParameter | FormDataParameter | QueryParameter | PathParameter | HeaderParameter; every type has unique in value per type, see Swagger Spec v2.0.
Add in fields with values to specific interfaces according to the schema.

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.

  • Test the change in your own code. (Compile and run.)

  • Add or edit tests to reflect the change. (Run with npm test.)

  • Follow the advice from the readme.

  • Avoid common mistakes.

  • Run npm run lint package-name (or tsc if no tslint.json is present).

  • Provide a URL to documentation or source code which provides context for the suggested changes: Swagger Spec v2.0

  • Increase the version number in the header if appropriate.

  • If you are making substantial changes, consider adding a tslint.json containing { "extends": "dtslint/dt.json" }.

1. add specific values for "in" on Parameters acording to swagger schema
2. edit test. type field in body parameter is invalid according to swagger schema
@typescript-bot typescript-bot added this to Waiting for Reviewers in Pull Request Status Board Feb 20, 2019
@typescript-bot
Copy link
Contributor

typescript-bot commented Feb 20, 2019

@cylon3035 Thank you for submitting this PR!

🔔 @mohsen1 @bsouthga @nimerritt @mauriedo - please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead.

Copy link
Contributor

@mohsen1 mohsen1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@typescript-bot typescript-bot moved this from Waiting for Reviewers to Check and Merge in Pull Request Status Board Feb 21, 2019
@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Merge:Express and removed Awaiting reviewer feedback labels Feb 21, 2019
@typescript-bot
Copy link
Contributor

A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped!

@gabritto gabritto merged commit 9d9c2ff into DefinitelyTyped:master Feb 21, 2019
@typescript-bot typescript-bot removed this from Check and Merge in Pull Request Status Board Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Owner Approved A listed owner of this package signed off on the pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants