Skip to content

Conversation

nick1udwig
Copy link
Member

@nick1udwig nick1udwig commented May 6, 2024

Problem

We want to be able to publish APIs as WIT files.

Solution

TODO

Docs Update

hyperware-ai/hyperware-book#198

Notes

Sister PR

@dr-frmr
Copy link
Contributor

dr-frmr commented May 6, 2024

Extremely exciting

@nick1udwig
Copy link
Member Author

Screenshot from 2024-05-07 14-44-49
Screenshot from 2024-05-07 14-45-02

Base automatically changed from develop to main May 8, 2024 20:13
nick1udwig and others added 3 commits May 13, 2024 15:28
Conflicts:
      Cargo.lock
      kinode/Cargo.toml
      kinode/packages/homepage/homepage/src/lib.rs
@nick1udwig nick1udwig marked this pull request as ready for review May 13, 2024 23:34
@nick1udwig nick1udwig requested a review from dr-frmr May 13, 2024 23:35
@dr-frmr dr-frmr changed the base branch from main to develop May 14, 2024 01:42
Copy link
Contributor

@dr-frmr dr-frmr left a comment

Choose a reason for hiding this comment

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

going to look closer at app store API change, some initial notes

lib/src/core.rs Outdated
pub license: Option<String>,
pub screenshots: Option<Vec<String>>,
pub wit_version: Option<(u32, u32, u32)>,
pub dependencies: Vec<String>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make this an Option<Vec<String>> and please add the description of this field to the docstring for this type

Copy link
Member Author

Choose a reason for hiding this comment

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

What is the purpose of having it be an Option when an empty vector accomplishes the same thing? JSON parsing optional field?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed in 3194b03

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, if we want this to be backwards-compatible, need to parse successfully when the field doesn't exist in JSON

Base automatically changed from develop to main May 14, 2024 05:44
@dr-frmr dr-frmr changed the base branch from main to develop May 14, 2024 05:47
Base automatically changed from develop to main May 14, 2024 17:18
@dr-frmr dr-frmr changed the base branch from main to develop May 14, 2024 19:04
@nick1udwig nick1udwig merged commit feced37 into develop May 16, 2024
@nick1udwig nick1udwig deleted the hf/wit-apis branch May 16, 2024 17:28
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.

2 participants