Skip to content

Conversation

@bhelx
Copy link
Contributor

@bhelx bhelx commented Oct 23, 2024

Does this look correct @zshipko ? Is there maybe a test i can grab?

@bhelx bhelx requested a review from zshipko as a code owner October 23, 2024 15:36

@dataclass
class User(extism.Json):
admin: bool
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zshipko does there exist a way to provide the keyname if it differs from the property name?

Copy link

Choose a reason for hiding this comment

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

I don't think so, we may have to add another decorator for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no problem, just checking

@zshipko
Copy link

zshipko commented Oct 23, 2024

The macos install script test has been flaky for some reason, I need to spend some time fixing CI for this repo

@bhelx bhelx force-pushed the document-extism-json branch 2 times, most recently from b2dcee7 to 73ec6e4 Compare October 23, 2024 15:44
Copy link

@zshipko zshipko left a comment

Choose a reason for hiding this comment

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

Changes look good, I think if you rebase CI will pass. But since this doesn't touch the code we can probably just merge this as-is.

@bhelx bhelx force-pushed the document-extism-json branch from 73ec6e4 to 746d3cd Compare October 24, 2024 16:17
@bhelx bhelx merged commit e15f2a7 into main Oct 24, 2024
@bhelx bhelx deleted the document-extism-json branch October 24, 2024 18:40
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.

3 participants