refactor(oas31): use system.fn as source of truth for Model wrapper
Refs #8577
This commit is contained in:
committed by
Vladimír Gorej
parent
df9aadf971
commit
b017858fe1
@@ -4,10 +4,6 @@
|
||||
import React from "react"
|
||||
|
||||
import { createOnlyOAS31ComponentWrapper } from "../fn"
|
||||
import {
|
||||
makeIsExpandable,
|
||||
getProperties,
|
||||
} from "../json-schema-2020-12-extensions/fn"
|
||||
|
||||
const ModelsWrapper = createOnlyOAS31ComponentWrapper(({ getSystem }) => {
|
||||
const { getComponent, fn, getConfigs } = getSystem()
|
||||
@@ -134,11 +130,8 @@ const ModelsWrapper = createOnlyOAS31ComponentWrapper(({ getSystem }) => {
|
||||
},
|
||||
fn: {
|
||||
upperFirst: fn.upperFirst,
|
||||
isExpandable: makeIsExpandable(
|
||||
fn.jsonSchema202012.isExpandable,
|
||||
getSystem
|
||||
),
|
||||
getProperties,
|
||||
isExpandable: fn.jsonSchema202012.isExpandable,
|
||||
getProperties: fn.jsonSchema202012.getProperties,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user