( write: StandardJSONSchemaV1.Converter["input"], ctx: JsonSchemaContext )
| 774 | } |
| 775 | |
| 776 | const writeOwn = ( |
| 777 | write: StandardJSONSchemaV1.Converter["input"], |
| 778 | ctx: JsonSchemaContext |
| 779 | ): JsonSchema => { |
| 780 | // an OpenAPI 3.1 Schema Object is draft-2020-12, which Standard JSON Schema names |
| 781 | const { $schema, ...schema } = write({ |
| 782 | target: ctx.target === "openapi-3.1" ? "draft-2020-12" : ctx.target |
| 783 | }) |
| 784 | return schema |
| 785 | } |
| 786 | |
| 787 | const foreignFallback = ( |
| 788 | ctx: JsonSchemaContext, |
no test coverage detected