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

feat(map): Add Introspection for Map Type #646

Merged
merged 43 commits into from
May 22, 2023

Conversation

jonathan-casey
Copy link
Member

Closes #

This change adds the specified classes for runtime introspection of a MapType - MapDeclaration,MapKeyType and a general AggregateValueType. Each class is responsible for processing of an AST representation of a MapDeclaration before instantiation, exposing various functionality, as well as correct validation for each of its parts.

For more information on the design specification see here

Changes

  • Added classes for MapDeclaration,MapKeyType and AggregateValueType
  • Added test coverage
  • Added type definitions

Related Issues

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

@jonathan-casey jonathan-casey marked this pull request as ready for review May 16, 2023 13:53
@jonathan-casey jonathan-casey requested a review from a team May 16, 2023 13:53
@mttrbrts mttrbrts requested review from dselman and mttrbrts May 17, 2023 10:59
Copy link
Member

@mttrbrts mttrbrts left a comment

Choose a reason for hiding this comment

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

Love all of the test cases.

Mostly minor comments, happy to chat about the best inheritance hierarchy for MapDeclarations and if FQNs make sense for Keys/Values.

Signed-off-by: jonathan.casey <[email protected]>
Signed-off-by: jonathan.casey <[email protected]>
Signed-off-by: jonathan.casey <[email protected]>
@dselman
Copy link
Contributor

dselman commented May 19, 2023

Please ensure that the latest metamodel is publish to the public model repo: https://models.accordproject.org/concerto/[email protected]

Copy link
Contributor

@dselman dselman left a comment

Choose a reason for hiding this comment

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

Looking good - a few nits to pick!

@mttrbrts mttrbrts requested review from mttrbrts and dselman May 19, 2023 20:24
@mttrbrts mttrbrts dismissed dselman’s stale review May 19, 2023 20:25

All feedback address, requesting re-review

@mttrbrts mttrbrts merged commit 248a663 into main May 22, 2023
@mttrbrts mttrbrts deleted the jonathan/introspection_map_type branch May 22, 2023 09:52
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