Skip to content

DataDog Dashboard missing attributeTypeMap #1

Open
@vincentgna

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions