protocol: Sync peer should be #!any #8

Closed
opened 2024-01-13 16:28:59 +00:00 by ehmry · 1 comment
Contributor

The protocol schema should not specify #!#f for the Sync peer because the module does not set an embeddedType which implies that the this field should really be an embedded literal #f.

97876335ba/schemas/protocol.prs (L19)

- Sync = <sync @peer #!#f>.
+ Sync = <sync @peer #!any>.

I would make a PR but I cannot build the schema tool to compile the bundle and my reimplementation doesn't fully replicate the schema parser.

The protocol schema should not specify `#!#f` for the `Sync` peer because the module does not set an `embeddedType` which implies that the this field should really be an embedded literal `#f`. https://git.syndicate-lang.org/syndicate-lang/syndicate-protocols/src/commit/97876335ba8d37575e17481be6bdc40a1bd4959d/schemas/protocol.prs#L19 ```diff - Sync = <sync @peer #!#f>. + Sync = <sync @peer #!any>. ``` I would make a PR but I cannot build the schema tool to compile the bundle and my reimplementation doesn't fully replicate the schema parser.
Author
Contributor

After reading the fine text of preserves-schema I've decided that the schema is correct and I am generating the wrong code.

After reading the fine text of [preserves-schema](https://preserves.dev/preserves-schema.html) I've decided that the schema is correct and I am generating the wrong code.
ehmry closed this issue 2024-01-14 10:19:21 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: syndicate-lang/syndicate-protocols#8
No description provided.