Skip to content

Breaking Change: Standardize casing for property names and enumerated values in JSON #642

Closed
@michaeltlombardi

Description

@michaeltlombardi

Summary of the new feature / enhancement

As a user of DSC, resource author, and contributing or integrating developer, I want to rely on consistent casing for JSON that DSC emits and expects, instead of having to double-check properties and values or accidentally run into unexpected validation or (de)serialization errors.

Currently, the general practice is to use camelCase for JSON property names and enumerated values. However, not all of the structs follow this convention, and it's not predictable which values or properties use a different casing.

Because JSON Schemas are case sensitive, this constitutes a breaking change best made sooner than later.

Proposed technical implementation details (optional)

  1. Ensure that the serde attribute for rust structs and enums correctly cases the property names and values.
  2. Update the JSON schemas hosted in the repository to match.
  3. Ensure all future structs and enums that derive the Serialize and/or Deserialize use camel casing.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions