From 20c2c74746efbbc829478d1ced6658305869a915 Mon Sep 17 00:00:00 2001 From: Pierre PLR Date: Mon, 13 Nov 2023 14:11:08 +0100 Subject: [PATCH] fix(oas31): use system.fn as source of truth for Model wrapper (#9153) Refs #8577 --- src/core/plugins/oas31/wrap-components/model.jsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/core/plugins/oas31/wrap-components/model.jsx b/src/core/plugins/oas31/wrap-components/model.jsx index 45d91ba3fc1..8774bc15e75 100644 --- a/src/core/plugins/oas31/wrap-components/model.jsx +++ b/src/core/plugins/oas31/wrap-components/model.jsx @@ -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 }) => { @@ -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, }, })