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

Update constants.json #373

Closed
wants to merge 4 commits into from
Closed

Update constants.json #373

wants to merge 4 commits into from

Conversation

msyyc
Copy link
Member

@msyyc msyyc commented Mar 22, 2022

No description provided.

@@ -658,8 +658,7 @@
"in": "header",
"required": true,
"type": "boolean",
"description": "Constant header property on the client that is a required parameter for operation 'constants_putClientConstants'",
"enum": [true]
"description": "Constant header property on the client that is a required parameter for operation 'constants_putClientConstants'"
Copy link
Contributor

@iscai-msft iscai-msft Mar 22, 2022

Choose a reason for hiding this comment

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

@msyyc having "enum": [true] is the point of the test because that is how we define a constant in the swagger: by having a single value enum. It's confusing definitely, and we have had discussions about this swagger design, but this is how we still specify constants, and in this test we want to test a header param with constant value true. So I think the test should stay the way it currently is.

For more info, you can see this doc, specifically the third bullet point

Copy link
Member Author

Choose a reason for hiding this comment

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

I will add x-ms-enum: false to keep the test compatible

@msyyc
Copy link
Member Author

msyyc commented Mar 23, 2022

merge the content with #368

@msyyc msyyc closed this Mar 23, 2022
@msyyc msyyc deleted the update-constants branch March 23, 2022 02:14
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

Successfully merging this pull request may close these issues.

2 participants