Skip to content

Update schema data model #31

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

Merged

Conversation

berendsliedrecht
Copy link
Contributor

@berendsliedrecht berendsliedrecht commented Dec 12, 2022

Dependent on #23, #27 and #30

  • Removes the ver from the schema
  • Rename attrNames to attr_names
  • remove internal SchemaV1 enum wrapper

closes #10

Work funded by the Government of Ontario.

pub name: String,
pub version: String,
#[serde(rename = "attrNames")]
Copy link
Member

Choose a reason for hiding this comment

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

Let's wait with this one for a bit maybe. I know I created an issue to change it. But as all models are coming out to use camelCase, I think we should just jeep using camelCase here and minimize changes.

Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am fine with either. I think a definitive decision would be very valuable here.

@swcurran I might have missed some of the on going discussions surrounding the spec, but is there a decision made around the anoncreds objects and which casing they use? I think I have a slight preference for snake case, but without any good reason, so either is good in my opinion. (if this needs further discussion, and there is no issue open already, I would not mind creating one).

Copy link
Member

Choose a reason for hiding this comment

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

The reason I'm leaning to keeping it camelCase is that anoncreds objects already mostly use camelCase. The records that are registered on the indy ledger are using snake_case in some places however.

So my opinion would be to go with camelCase

@berendsliedrecht berendsliedrecht force-pushed the update-schema-data-model branch 2 times, most recently from 06d485a to 5b19944 Compare January 3, 2023 09:17
Copy link
Member

@TimoGlastra TimoGlastra left a comment

Choose a reason for hiding this comment

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

LGTM, expect that I would like to keep the attr_names as camelCase for now. I just opened a Pr in the spec today to update it to camelCase

@TimoGlastra
Copy link
Member

LGTM, expect that I would like to keep the attr_names as camelCase for now. I just opened a Pr in the spec today to update it to camelCase

If the discussion ends up we will use snake_case for everything then we can address in a separate PR

Work funded by the Government of Ontario.

Signed-off-by: blu3beri <[email protected]>
@berendsliedrecht berendsliedrecht force-pushed the update-schema-data-model branch from 38b4e5f to 06f2e2d Compare January 3, 2023 09:47
@berendsliedrecht berendsliedrecht merged commit 8ab13dd into hyperledger:main Jan 3, 2023
@berendsliedrecht berendsliedrecht deleted the update-schema-data-model branch January 3, 2023 10:25
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.

Update the Schema data type according to the AnonCreds specification
2 participants