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): Codegen for GraphQL Target #66

Merged
merged 4 commits into from
Oct 19, 2023

Conversation

jonathan-casey
Copy link
Member

Sample

type Map1 {
   key: String
   value: String
}
type Map2 {
   key: String
   value: DateTime
}
type Map3 {
   key: String
   value: SSN
}
type Map4 {
   key: String
   value: Concept
}
type Map5 {
   key: SSN
   value: String
}
type Map6 {
   key: SSN
   value: Employee
}

Signed-off-by: Jonathan Casey <[email protected]>
Signed-off-by: Jonathan Casey <[email protected]>
Signed-off-by: Jonathan Casey <[email protected]>
Signed-off-by: Jonathan Casey <[email protected]>
@coveralls
Copy link

Coverage Status

coverage: 98.897% (+0.004%) from 98.893% when pulling d826e9a on jonathan/codegen_map_graphql into 64de665 on main.

@jonathan-casey jonathan-casey marked this pull request as ready for review October 18, 2023 12:29
@jonathan-casey jonathan-casey requested a review from a team October 18, 2023 12:29
@jonathan-casey jonathan-casey merged commit 8326e10 into main Oct 19, 2023
11 checks passed
@jonathan-casey jonathan-casey deleted the jonathan/codegen_map_graphql branch October 19, 2023 08:17
jonathan-casey added a commit that referenced this pull request Nov 3, 2023
* feat(map): add graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): update snapshot

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): adds graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): restores sandbox

Signed-off-by: Jonathan Casey <[email protected]>

---------

Signed-off-by: Jonathan Casey <[email protected]>
jonathan-casey added a commit that referenced this pull request Nov 3, 2023
* feat(map): add graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): update snapshot

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): adds graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): restores sandbox

Signed-off-by: Jonathan Casey <[email protected]>

---------

Signed-off-by: Jonathan Casey <[email protected]>
jonathan-casey added a commit that referenced this pull request Nov 3, 2023
* feat(map): add graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): update snapshot

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): adds graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): restores sandbox

Signed-off-by: Jonathan Casey <[email protected]>

---------

Signed-off-by: Jonathan Casey <[email protected]>
jonathan-casey added a commit that referenced this pull request Nov 6, 2023
* feat(map): add graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): update snapshot

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): adds graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): restores sandbox

Signed-off-by: Jonathan Casey <[email protected]>

---------

Signed-off-by: Jonathan Casey <[email protected]>
jonathan-casey added a commit that referenced this pull request Nov 6, 2023
* feat(map): add map for javavisitor

Signed-off-by: Jonathan Casey <[email protected]>

* feat(map): update snapshot

Signed-off-by: Jonathan Casey <[email protected]>

* feat(map): add test cases

Signed-off-by: Jonathan Casey <[email protected]>

* remove redundant ternary expression

Signed-off-by: Jonathan Casey <[email protected]>

* feat(map): get type from ModelFile

Signed-off-by: Jonathan Casey <[email protected]>

* chore(deps): upgrade concerto

Signed-off-by: Jonathan Casey <[email protected]>

* fix(csharp):remove semicolon (;) from map property declaration (#60)

fix(csharp):remove ; from map property declaration

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: Jonathan Casey <[email protected]>

* chore: fix package version

Signed-off-by: Jonathan Casey <[email protected]>

* chore(actions): publish v3.16.2 to npm (#61)

Signed-off-by: GitHub <[email protected]>
Signed-off-by: Jonathan-Casey <[email protected]>
Co-authored-by: Jonathan-Casey <[email protected]>
Co-authored-by: Jonathan-Casey <[email protected]>
Signed-off-by: Jonathan Casey <[email protected]>

* feat(map): Codegen for GraphQL Target (#66)

* feat(map): add graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): update snapshot

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): adds graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): restores sandbox

Signed-off-by: Jonathan Casey <[email protected]>

---------

Signed-off-by: Jonathan Casey <[email protected]>

* feat!(codegen): remove loopback src (#59)

feat(codegen): remove loopback src

Signed-off-by: Jonathan Casey <[email protected]>

* chore(deps-dev): bump @babel/traverse from 7.22.11 to 7.23.2 (#67)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.11 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Jonathan Casey <[email protected]>

* test(codegen) update HR model to use multiple namespaces (#68)

Signed-off-by: Dan Selman <[email protected]>
Signed-off-by: Jonathan Casey <[email protected]>

* feat(map): update snapshot

Signed-off-by: Jonathan Casey <[email protected]>

* chore(deps): upgrade concerto

Signed-off-by: Jonathan Casey <[email protected]>

* chore(deps): upgrade concerto

Signed-off-by: Jonathan Casey <[email protected]>

* test(*): snapshot update

Signed-off-by: Jonathan Casey <[email protected]>

* test(*): snapshot update

Signed-off-by: Jonathan Casey <[email protected]>

* feat(map): write util import

Signed-off-by: Jonathan Casey <[email protected]>

* test(*): fix regressions

Signed-off-by: Jonathan Casey <[email protected]>

* test(*): add test coverage for map imports

Signed-off-by: Jonathan Casey <[email protected]>

* test(*): uses isMap util fun

Signed-off-by: Jonathan Casey <[email protected]>

---------

Signed-off-by: Jonathan Casey <[email protected]>
Signed-off-by: [email protected] <[email protected]>
Signed-off-by: GitHub <[email protected]>
Signed-off-by: Jonathan-Casey <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Dan Selman <[email protected]>
Co-authored-by: Ragi Dayananda <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jonathan-Casey <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan Selman <[email protected]>
@mttrbrts mttrbrts added this to the v3.x milestone Nov 8, 2023
jonathan-casey added a commit that referenced this pull request Nov 16, 2023
* feat(map): add map support for jsonschemavisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): test cases

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): update snapshot

Signed-off-by: Jonathan Casey <[email protected]>

* feat(map): add type defs

Signed-off-by: Jonathan Casey <[email protected]>

* feat(map): remove redundant property from additionalProperties

Signed-off-by: Jonathan Casey <[email protected]>

* feat(map): use getFieldOrScalarDeclarationValidatorsForSchema to get the type

Signed-off-by: Jonathan Casey <[email protected]>

* feat(map): Codegen for GraphQL Target (#66)

* feat(map): add graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): update snapshot

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): adds graphqlvisitor

Signed-off-by: Jonathan Casey <[email protected]>

* test(map): restores sandbox

Signed-off-by: Jonathan Casey <[email protected]>

---------

Signed-off-by: Jonathan Casey <[email protected]>

* feat!(codegen): remove loopback src (#59)

feat(codegen): remove loopback src

Signed-off-by: Jonathan Casey <[email protected]>

* chore(deps-dev): bump @babel/traverse from 7.22.11 to 7.23.2 (#67)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.11 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* test(codegen) update HR model to use multiple namespaces (#68)

Signed-off-by: Dan Selman <[email protected]>

* test(*): snapshot update

Signed-off-by: Jonathan Casey <[email protected]>

* feat(*): gets type from model file

Signed-off-by: Jonathan Casey <[email protected]>

* test(*): snapshot update

Signed-off-by: Jonathan Casey <[email protected]>

* feat(*): use scalar validator regex as pattern value

Signed-off-by: Jonathan Casey <[email protected]>

* test(*): add regex to property

Signed-off-by: Jonathan Casey <[email protected]>

* test(*): update snapshot

Signed-off-by: Jonathan Casey <[email protected]>

* test(*): update jsdoc and typedef

Signed-off-by: Jonathan Casey <[email protected]>

---------

Signed-off-by: Jonathan Casey <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Dan Selman <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan Selman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants