Skip to content

Conversation

andreaangiolillo
Copy link
Collaborator

Proposed changes

Jira ticket: CLOUDP-284437

description: operationId should be camelCased.
given: "$.paths[*]..operationId"
severity: error
then:
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a message like

Suggested change
then:
message: "Operation ID should be camelCase: {{property}}."
then:

so we can see what the current value is?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point! I will update it

Copy link
Collaborator Author

@andreaangiolillo andreaangiolillo Nov 14, 2024

Choose a reason for hiding this comment

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

I updated to use {{value}} which gives the message 40221:26 error xgen-docs-operationId-camel-case Operation ID should be camelCase: grantMongoDBEmployeeAccess.

Using {{property}} does not give a useful message 40221:26 error xgen-docs-operationId-camel-case Operation ID should be camelCase: operationId.

Copy link
Contributor

Choose a reason for hiding this comment

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

perfect I wasn't sure what the right interpolation was, thanks for fixing it

@andreaangiolillo andreaangiolillo marked this pull request as ready for review November 15, 2024 10:13
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner November 15, 2024 10:13
@andreaangiolillo andreaangiolillo merged commit 1bdea9e into main Nov 15, 2024
12 checks passed
@andreaangiolillo andreaangiolillo deleted the CLOUDP-284437 branch November 15, 2024 10:31
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.

4 participants