Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema generation for Buffer type generates invalid patternProperties #85

Open
julienblin opened this issue Nov 13, 2018 · 0 comments
Open
Labels
bug Something isn't working

Comments

@julienblin
Copy link
Owner

Given the following interface:

export interface Asset {
  contentType: string;
  data: Buffer;
  publicationId?: string;
  version?: string;
}

The generated schema.ts is invalid using the following command:

uno generate-schemas "src/entities/**/*.ts" -c ./tsconfig.json -f ts -o src/entities/schemas.ts

Expected Behavior

The output patternProperties should be quoted to be valid typescript code.

Current Behavior

Pattern property is invalid because the regex is not quoted.

Your Environment

  • Version used: 0.52
@julienblin julienblin added the bug Something isn't working label Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant