Skip to content

Commit

Permalink
fix(oas31): use system.fn as source of truth for Model wrapper (#9153)
Browse files Browse the repository at this point in the history
Refs #8577
  • Loading branch information
pplr authored Nov 13, 2023
1 parent ace93df commit 20c2c74
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/core/plugins/oas31/wrap-components/model.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
import React from "react"

import { createOnlyOAS31ComponentWrapper } from "../fn"
import {
makeIsExpandable,
getProperties,
} from "../json-schema-2020-12-extensions/fn"

const ModelWrapper = createOnlyOAS31ComponentWrapper(
({ getSystem, ...props }) => {
Expand Down Expand Up @@ -139,11 +135,8 @@ const ModelWrapper = createOnlyOAS31ComponentWrapper(
},
fn: {
upperFirst: fn.upperFirst,
isExpandable: makeIsExpandable(
fn.jsonSchema202012.isExpandable,
getSystem
),
getProperties,
isExpandable: fn.jsonSchema202012.isExpandable,
getProperties: fn.jsonSchema202012.getProperties,
},
})

Expand Down

0 comments on commit 20c2c74

Please sign in to comment.