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

- fixes #1393 a bug where models descriptions would not be deterministic #1394

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

baywet
Copy link
Member

@baywet baywet commented Mar 15, 2022

No description provided.

@baywet baywet added this to the Community Preview milestone Mar 15, 2022
@baywet baywet added the generator Issues or improvements relater to generation capabilities. label Mar 15, 2022
@baywet baywet self-assigned this Mar 15, 2022
@baywet baywet enabled auto-merge March 15, 2022 16:53
@baywet baywet linked an issue Mar 15, 2022 that may be closed by this pull request
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Description = currentNode.GetPathItemDescription(Constants.DefaultOpenApiLabel)
Description = schema.Description ?? (string.IsNullOrEmpty(schema.Reference?.Id) ?
currentNode.GetPathItemDescription(Constants.DefaultOpenApiLabel) :
null),// if it's a referenced component, we shouldn't use the path item description as it makes it indeterministic
Copy link
Member

Choose a reason for hiding this comment

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

👍🏼

@baywet baywet merged commit cceb6c5 into main Mar 16, 2022
@baywet baywet deleted the bugfix/description branch March 16, 2022 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generator Issues or improvements relater to generation capabilities.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

models description is non-deterministic
2 participants