( propertyName: string, schema: JsonSchemaType, )
| 149 | * @returns true if the property is required, false otherwise |
| 150 | */ |
| 151 | export function isPropertyRequired( |
| 152 | propertyName: string, |
| 153 | schema: JsonSchemaType, |
| 154 | ): boolean { |
| 155 | return schema.required?.includes(propertyName) ?? false; |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * Resolves $ref references in JSON schema |
no outgoing calls
no test coverage detected