Skip to content

Commit

Permalink
chore!: make Field's universal property optional in schema (#236)
Browse files Browse the repository at this point in the history
This is a partial revert of 4ce47f0.

`universal` should be non-optional in the protobuf (for serialization)
but optional in the schema. This fixes that.
  • Loading branch information
EvanHahn authored Sep 3, 2024
1 parent dbd9c74 commit 1063822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion schema/field/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@
"type": "string"
}
},
"required": ["tagKey", "type", "label", "schemaName", "universal"],
"required": ["tagKey", "type", "label", "schemaName"],
"additionalProperties": false
}
1 change: 1 addition & 0 deletions src/lib/encode-conversions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const convertField: ConvertFunction<'field'> = (mapeoDoc) => {
}
})
: [],
universal: Boolean(mapeoDoc.universal),
}
}

Expand Down

0 comments on commit 1063822

Please sign in to comment.