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

Sketch of possible API for local workspace situation reporting. #48

Closed
wants to merge 1 commit into from

Conversation

warpfork
Copy link
Collaborator

This commit is foremost an outline and proof-of-concept that we can split definitions of our schema into multiple files, and reuse the main warpforge API schema types in this second, superset schema. And yep: that works. (I did something a tad hacky to achieve it. I'll try to push at least some of that towards upstream. It's mild, though.)

The actual message types declared in this diff are a sketch only, and not firmly committed to.

This commit is foremost an outline and proof-of-concept that we can
split definitions of our schema into multiple files, and reuse the
main warpforge API schema types in this second, superset schema.

The actual message types declared in this diff are a sketch only,
and not firmly committed to.
// concat returns a new schemadmt that's got the types from both.
//
// This function could probably be hoisted upstream.
func concat(a, b *schemadmt.Schema) *schemadmt.Schema {
Copy link
Collaborator

@TripleDogDare TripleDogDare Dec 22, 2022

Choose a reason for hiding this comment

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

This function should return an error and have the anonymous init function above do the panics. An upstream version of it wouldn't panic.

Copy link
Collaborator

@TripleDogDare TripleDogDare left a comment

Choose a reason for hiding this comment

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

We'll probably make changes to this but it has the base ipld code that I'll need to get started.
Minor change request that has no real effect on execution so 🤷. LGTM.

@TripleDogDare
Copy link
Collaborator

This will be included in #58

@TripleDogDare TripleDogDare mentioned this pull request Jan 13, 2023
@warpfork warpfork closed this Jan 22, 2023
@warpfork warpfork deleted the api-demo branch January 22, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants