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

DataDog Dashboard missing attributeTypeMap #1

Open
vincentgna opened this issue Sep 6, 2023 · 1 comment
Open

DataDog Dashboard missing attributeTypeMap #1

vincentgna opened this issue Sep 6, 2023 · 1 comment

Comments

@vincentgna
Copy link
Contributor

the generator stores an attribute mapping for serialization:

DataDog/datadog-api-client-typescript/packages/datadog-api-client-v1/models/Dashboard.ts - attributeTypeMap

this mapping is generated from the OpenAPI spec with following conversions for TypeScript interfaces
DataDog/datadog-api-client-typescript/.generator/src/generator/formatter.py - attribute_name

When using the generated TS and converting directly to JSON string, the object won't match the API spec.

A hack is to "decamelize" (or "snake_case") the keys, but this doesn't guarantee correct results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant