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

fix: resolve unresolved schemas #9629

Merged
merged 7 commits into from
Feb 23, 2024
Merged

fix: resolve unresolved schemas #9629

merged 7 commits into from
Feb 23, 2024

Conversation

glowcloud
Copy link
Contributor

Refs #9513

: <tr>
<td>{ "allOf ->" }</td>
<td>
{allOf.map((schema, k) => {
Copy link
Member

Choose a reason for hiding this comment

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

This can fail if allOf will be defined as anything else than array. But seeing the anyOf and oneOf, let's accept that just for consistency. We can fix that in a follow up PR for every *Of keyword.

if ($ref) {
name = this.getModelName($ref)
const refSchema = this.getRefSchema(name)
if (refSchema) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (refSchema) {
if (Map.isMap(refSchema)) {

Copy link
Member

@char0n char0n left a comment

Choose a reason for hiding this comment

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

LGTM. Please have a look at my suggestions before merging.

@glowcloud glowcloud merged commit 7300e6c into master Feb 23, 2024
6 checks passed
@glowcloud glowcloud deleted the issue-9513 branch February 23, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants