Skip to content

fix to rfc9553 - #58

Merged
mario-loffredo merged 1 commit into
consiglionazionaledellericerche:masterfrom
Its-Just-Nans:fix-json
Jan 31, 2025
Merged

mario-loffredo merged 1 commit into
consiglionazionaledellericerche:masterfrom
Its-Just-Nans:fix-json

Conversation

@Its-Just-Nans

Copy link
Copy Markdown
Contributor

Hello,

Some json in the repo are not valid Card (because not including the version). Is that normal ?

I've also replaced the extension by the room kind

@mario-loffredo

Copy link
Copy Markdown
Collaborator

Some json in the repo are not valid Card (because not including the version). Is that normal ?

Thanks a lot for this.

Since the Card object's version property is set to "1.0" by default, this somehow interferes with the @NotNull constraint.

That's why I didn't notice the version property was missing from some json.

On the other hand, setting a default value for the version property makes it easier to create a Card object.

I'll figure out how to fix this issue.

I've also replaced the extension by the room kind

Good catch.

@Its-Just-Nans

Copy link
Copy Markdown
Contributor Author

Thanks for the details

For informations your tests files (JsCard) are imported, fixed and tested in my implementation repository https://github.com/Its-Just-Nans/jscontact/tree/main/tests/imported

@mario-loffredo
mario-loffredo merged commit 2ad7fef into consiglionazionaledellericerche:master Jan 31, 2025
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