Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate .idl schemas #126

Merged
merged 6 commits into from
Aug 28, 2023
Merged

Conversation

jtbandes
Copy link
Member

Adds OMG IDL definitions for Foxglove schemas.

@jtbandes jtbandes marked this pull request as ready for review August 25, 2023 23:55
@@ -17,8 +17,8 @@ export const exampleEnum: FoxgloveEnumSchema = {
parentSchemaName: "ExampleMessage",
description: "An example enum",
values: [
{ name: "A", value: 1, description: "Value A" },
{ name: "B", value: 2, description: "Value B" },
{ name: "A", value: 0, description: "Value A" },
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth putting a comment here that these need to start at 0 for omgidl enum support?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's fine without since the assertion will catch it if this were to change

internal/generateOmgIdl.test.ts Show resolved Hide resolved
internal/generateOmgIdl.ts Outdated Show resolved Hide resolved
@snosenzo
Copy link
Contributor

Another thought, should we test this against parseIdlToAST in foxglove/omgidl? It's not exposed, but any thoughts around whether we should test it here or there for conformity?
Maybe it's a better idea to add a test case there against all of the data here to make sure all of this is properly supported

@amacneil
Copy link
Contributor

Not sure if there is anything specific you would like me to review, but I took a look at a few of the generated schemas and they seem good.

@jtbandes jtbandes requested a review from snosenzo August 28, 2023 17:56
@jtbandes jtbandes merged commit 63f59f5 into main Aug 28, 2023
9 checks passed
@jtbandes jtbandes deleted the jacob/fg-4196-publish-idl-for-foxglove-schemas branch August 28, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants