Skip to content

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

Merged
adamw merged 4 commits intosoftwaremill:masterfrom
ae0n:optional-enum-in-api-docs-fix
Jun 29, 2021
Merged

fixed docs generation of referenced enums when they're inside of a collection#1341
adamw merged 4 commits intosoftwaremill:masterfrom
ae0n:optional-enum-in-api-docs-fix

Conversation

@ae0n
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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