(ast: SchemaAST.AST)
| 919 | * @since 4.0.0 |
| 920 | */ |
| 921 | export const isNoContent = (ast: SchemaAST.AST): boolean => { |
| 922 | if (SchemaAST.isVoid(ast)) return true |
| 923 | const encoded = SchemaAST.toEncoded(ast) |
| 924 | if (SchemaAST.isVoid(encoded)) return true |
| 925 | const target = ast.encoding?.[0].to |
| 926 | if (target === undefined) return false |
| 927 | return SchemaAST.isVoid(target) |
| 928 | } |
| 929 | |
| 930 | const resolveHttpApiEncoding = SchemaAST.resolveAt<Encoding>("~httpApiEncoding") |
| 931 |
nothing calls this directly
no outgoing calls
no test coverage detected