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

fixed docs generation of referenced enums when they're inside of a collection #1341

Merged
merged 4 commits into from
Jun 29, 2021

Conversation

ae0n
Copy link
Contributor

@ae0n ae0n commented Jun 25, 2021

I've found a bug that occurs during generation of a documentation for a type with an enum which is inside of a collection (for example inside Option) and only if I want to make a type reference for this enum. Enums which were inlined into documentation was generated without a problem.
I've extended one of the test cases to demonstrate this bug.
The problem was during collection of ObjectSchemas for endpoint in ToObjectSchema. ObjectSchema for that specific enum was skipped during schema collection process and documentation generation failed with an error like this
java.util.NoSuchElementException: key not found: SObjectInfo(CornerStyle,List())

@ae0n
Copy link
Contributor Author

ae0n commented Jun 28, 2021

By some reason the CI check is failed during the repo checkout step.

adamw added 3 commits June 29, 2021 15:05
…i-docs-fix

# Conflicts:
#	docs/apispec-docs/src/main/scala/sttp/tapir/docs/apispec/schema/ToObjectSchema.scala
@adamw adamw merged commit 091b5f3 into softwaremill:master Jun 29, 2021
@adamw
Copy link
Member

adamw commented Jun 29, 2021

Thank you!

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