@@ -166,7 +166,7 @@ function OpenAPISchemaAlternative(props: {
166166/**
167167 * Render a circular reference to a schema.
168168 */
169- export function OpenAPISchemaCircularRef ( props : { id : string ; schema : OpenAPIV3 . SchemaObject } ) {
169+ function OpenAPISchemaCircularRef ( props : { id : string ; schema : OpenAPIV3 . SchemaObject } ) {
170170 const { id, schema } = props ;
171171
172172 return (
@@ -180,7 +180,7 @@ export function OpenAPISchemaCircularRef(props: { id: string; schema: OpenAPIV3.
180180/**
181181 * Render the enum value for a schema.
182182 */
183- export function OpenAPISchemaEnum ( props : { enumValues : any [ ] } ) {
183+ function OpenAPISchemaEnum ( props : { enumValues : any [ ] } ) {
184184 const { enumValues } = props ;
185185
186186 return (
@@ -198,7 +198,10 @@ export function OpenAPISchemaEnum(props: { enumValues: any[] }) {
198198 ) ;
199199}
200200
201- export function OpenAPISchemaPresentation ( props : { property : OpenAPISchemaPropertyEntry } ) {
201+ /**
202+ * Render the top row of a schema. e.g: name, type, and required status.
203+ */
204+ function OpenAPISchemaPresentation ( props : { property : OpenAPISchemaPropertyEntry } ) {
202205 const {
203206 property : { schema, propertyName, required } ,
204207 } = props ;
@@ -245,9 +248,7 @@ export function OpenAPISchemaPresentation(props: { property: OpenAPISchemaProper
245248/**
246249 * Get the sub-properties of a schema.
247250 */
248- export function getSchemaProperties (
249- schema : OpenAPIV3 . SchemaObject
250- ) : null | OpenAPISchemaPropertyEntry [ ] {
251+ function getSchemaProperties ( schema : OpenAPIV3 . SchemaObject ) : null | OpenAPISchemaPropertyEntry [ ] {
251252 // check array AND schema.items as this is sometimes null despite what the type indicates
252253 if ( schema . type === 'array' && schema . items && ! checkIsReference ( schema . items ) ) {
253254 const items = schema . items ;
@@ -360,7 +361,7 @@ function flattenAlternatives(
360361 } , [ ] ) ;
361362}
362363
363- export function getSchemaTitle ( schema : OpenAPIV3 . SchemaObject ) : string {
364+ function getSchemaTitle ( schema : OpenAPIV3 . SchemaObject ) : string {
364365 // Otherwise try to infer a nice title
365366 let type = 'any' ;
366367
0 commit comments