{
!description ? null :
| description: |
|
}
{
!(properties && properties.size) ? null : properties.entrySeq().map(
([key, value]) => {
let isDeprecated = isOAS3() && value.get("deprecated")
let isRequired = List.isList(requiredProperties) && requiredProperties.contains(key)
let propertyStyle = { verticalAlign: "top", paddingRight: "0.2em" }
if ( isRequired ) {
propertyStyle.fontWeight = "bold"
}
return (
|
{ key }{ isRequired && * }
|
|
)
}).toArray()
}
{
// empty row befor extensions...
!showExtensions ? null :
}
{
!showExtensions ? null :
schema.entrySeq().map(
([key, value]) => {
if(key.slice(0,2) !== "x-") {
return
}
const normalizedValue = !value ? null : value.toJS ? value.toJS() : value
return (
|
{ key }
|
{ JSON.stringify(normalizedValue) }
|
)
}).toArray()
}
{
!additionalProperties || !additionalProperties.size ? null
:
| { "< * >:" } |
|
}
{
!anyOf ? null
:
| { "anyOf ->" } |
{anyOf.map((schema, k) => {
return
})}
|
}
{
!oneOf ? null
:
| { "oneOf ->" } |
{oneOf.map((schema, k) => {
return
})}
|
}
{
!not ? null
:
| { "not ->" } |
|
}