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

Swagger docs incorrectly outputting member rather than members #898

Closed
donaldgray opened this issue Aug 12, 2024 · 1 comment · Fixed by #903
Closed

Swagger docs incorrectly outputting member rather than members #898

donaldgray opened this issue Aug 12, 2024 · 1 comment · Fixed by #903
Labels
API https://dlcs-book.readthedocs.io/en/latest/ bug Something isn't working

Comments

@donaldgray
Copy link
Member

HydraCollection<T> has the following property

[JsonProperty(Order = 20, PropertyName = "member")]
public T[]? Members { get; set; }

in the output swagger documentation members is used so it looks like it's not respecting the [JsonProperty] name. Look at how we can get the swagger documentation correctly respecting these properties.

Is this related to #886 and use of [ProducesResponseType] ?

@donaldgray donaldgray added bug Something isn't working API https://dlcs-book.readthedocs.io/en/latest/ labels Aug 12, 2024
@donaldgray
Copy link
Member Author

Similar issue with @type and type, @context and context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API https://dlcs-book.readthedocs.io/en/latest/ bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant