(options: GoOptions)
| 596 | } |
| 597 | |
| 598 | function getAdditionalProperties(options: GoOptions): boolean { |
| 599 | switch (options.additionalPropertiesStrategy) { |
| 600 | case "allow": |
| 601 | return true |
| 602 | case "strict": |
| 603 | return false |
| 604 | } |
| 605 | } |
| 606 | |
| 607 | function addASTAnnotations(jsonSchema: JsonSchema7, ast: AST.AST): JsonSchema7 { |
| 608 | return addAnnotations(jsonSchema, getJsonSchemaAnnotations(ast)) |