Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/weaver_emit/src/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ mod tests {
note: None,
stability: None,
deprecated: None,
annotations: None,
},
EnumEntriesSpec {
id: "second".to_owned(),
Expand All @@ -487,6 +488,7 @@ mod tests {
note: None,
stability: None,
deprecated: None,
annotations: None,
},
],
},
Expand All @@ -509,6 +511,7 @@ mod tests {
note: None,
stability: None,
deprecated: None,
annotations: None,
},
EnumEntriesSpec {
id: "second".to_owned(),
Expand All @@ -517,6 +520,7 @@ mod tests {
note: None,
stability: None,
deprecated: None,
annotations: None,
},
],
},
Expand All @@ -539,6 +543,7 @@ mod tests {
note: None,
stability: None,
deprecated: None,
annotations: None,
},
EnumEntriesSpec {
id: "second".to_owned(),
Expand All @@ -547,6 +552,7 @@ mod tests {
note: None,
stability: None,
deprecated: None,
annotations: None,
},
],
},
Expand All @@ -569,6 +575,7 @@ mod tests {
note: None,
stability: None,
deprecated: None,
annotations: None,
},
EnumEntriesSpec {
id: "second".to_owned(),
Expand All @@ -577,6 +584,7 @@ mod tests {
note: None,
stability: None,
deprecated: None,
annotations: None,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jerbly / @lquerel After seeing this type of change bloat PRs a thousand times,

How do we feel about using the DEFAULT syntax so this isn't so tedious when safely adding new fields?

e.g.:

EnumEntriesSpec {
  id: "non-default".to_owned(),
  ...Default::default(),
}

Instead of these more verbose updates where it's harder to see the content of what has changed...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

},
],
},
Expand Down
8 changes: 8 additions & 0 deletions crates/weaver_forge/data/registry-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,14 @@ groups:
stability: stable
value: 'cosmosdb'
brief: 'Microsoft Azure Cosmos DB'
deprecated: "Replaced by `azure.cosmosdb`."
annotations:
code_generation:
exclude: true
- id: azure_cosmosdb
stability: stable
value: 'azure.cosmosdb'
brief: 'Microsoft Azure Cosmos DB'
- id: dynamodb
stability: stable
value: 'dynamodb'
Expand Down
Loading
Loading