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

feat(apigateway): default value for enum type in schema models #11064

Merged
merged 29 commits into from
Nov 6, 2020

Conversation

mmuller88
Copy link
Contributor

@mmuller88 mmuller88 commented Oct 23, 2020

Fixes: #11065
Add default to JsonSchema


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Oct 23, 2020

@mmuller88
Copy link
Contributor Author

I assume the unit test is failing. Can someone help me to understand how to run those pls ?

@mmuller88
Copy link
Contributor Author

@nija-at jaii I got the unit test passing :)

@nija-at nija-at added the pr-linter/exempt-readme The PR linter will not require README changes label Oct 28, 2020
@nija-at nija-at changed the title fix(apigateway): Add missing default for enum feat(apigateway): specify a default value for enum type in schema models Oct 28, 2020
Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this PR.

Comment on lines 247 to 248
"docs-public-apis:@aws-cdk/aws-apigateway.JsonSchema.default",
"props-default-doc:@aws-cdk/aws-apigateway.JsonSchema.default",
Copy link
Contributor

@nija-at nija-at Oct 28, 2020

Choose a reason for hiding this comment

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

These shouldn't be required if you have a tsdoc and a @default annotation defined.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thx @nija-at I thought the same but the build was failing without those.

Copy link
Contributor Author

@mmuller88 mmuller88 Oct 30, 2020

Choose a reason for hiding this comment

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

ah just the default on you mean. Did that thanks 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Neither should be required. One is stating that the property has no documentation and the other is stating that the default is not documented. You have both specified.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Than the build should fail. I show you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @nija-at . Indeed it passed. I am sure it failed before without that two lines. Anyway. Thank you for baring with me :). Cheers

@mergify mergify bot dismissed nija-at’s stale review October 30, 2020 05:24

Pull request has been modified.

Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

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

Please see my response at #11064 (comment)

@mergify mergify bot dismissed nija-at’s stale review October 31, 2020 06:57

Pull request has been modified.

@nija-at nija-at changed the title feat(apigateway): specify a default value for enum type in schema models feat(apigateway): default value for enum type in schema models Nov 6, 2020
@mergify
Copy link
Contributor

mergify bot commented Nov 6, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: b46b0fe
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Nov 6, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 9eff751 into aws:master Nov 6, 2020
@mmuller88 mmuller88 deleted the patch-3 branch November 6, 2020 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-linter/exempt-readme The PR linter will not require README changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[apigateway] Missing default for enum
3 participants