Skip to content

to_dict() of model should respect attribute_map #1228

@bukowa

Description

@bukowa

While running to_dict method on the model attribute_map is not respected.

    attribute_map = {
        'service_name': 'serviceName',
        'service_port': 'servicePort'
    }

This results in bad yaml

  - host: example.com
    http:
      paths:
      - backend:
          service_name: example-service
          service_port: 8080
        path: /

related:

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions