I'm encountering a TypeScript error when defining a schema in my OpenAPI Specification (OAS) model using feTS. The error occurs when I try to use the properties keyword within my schema.
Type 'string' does not satisfy the constraint 'never'.
To Reproduce Steps to reproduce the behavior:
Define a schema using the properties keyword within the components.schemas.
Attempt to generate TypeScript types using feTS with the schema.
Expected behavior
TypeScript should successfully infer the types without error.
Actual behavior
TypeScript throws an error indicating that the type 'string' does not satisfy the constraint 'never'. This error seems to be related to the use of the properties keyword in the schema.
Describe the bug
I'm encountering a TypeScript error when defining a schema in my OpenAPI Specification (OAS) model using feTS. The error occurs when I try to use the properties keyword within my schema.
Here is a simplified version of my OAS model:
Type 'string' does not satisfy the constraint 'never'.
To Reproduce Steps to reproduce the behavior:
Expected behavior
TypeScript should successfully infer the types without error.
Actual behavior
TypeScript throws an error indicating that the type 'string' does not satisfy the constraint 'never'. This error seems to be related to the use of the properties keyword in the schema.
Link to Reproduction
Typescript Playground
Environment:
package-name...
: fets@0.8.3Additional context
The issue seems to arise when the properties keyword is used within a schema definition, conflicting with feTS type detection.