(jsonSchema: JsonSchema7, ast: AST.AST)
| 605 | } |
| 606 | |
| 607 | function addASTAnnotations(jsonSchema: JsonSchema7, ast: AST.AST): JsonSchema7 { |
| 608 | return addAnnotations(jsonSchema, getJsonSchemaAnnotations(ast)) |
| 609 | } |
| 610 | |
| 611 | function addAnnotations(jsonSchema: JsonSchema7, annotations: JsonSchemaAnnotations | undefined): JsonSchema7 { |
| 612 | if (annotations === undefined || Object.keys(annotations).length === 0) { |
no test coverage detected