Skip to content

Commit

Permalink
Merge pull request #188 from Netflix/kavitha/update-docs
Browse files Browse the repository at this point in the history
Update codegen docs.
  • Loading branch information
srinivasankavitha authored Aug 27, 2024
2 parents fd4189a + 22443e4 commit b3d70e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .idea/tbe-PST.xml

This file was deleted.

3 changes: 3 additions & 0 deletions docs/generating-code-from-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ dependencies {
}
```

For libraries that are looking to export [type mappings](#mapping-existing-types) for their schemas (see next section), you can also add a `dgs.codegen.typemappings` file as a resource under META-INF.
For a project that is consuming schemas from an external JAR, codegen will also scan `dgs.codegen.typemappings` to automatically map types to corresponding Java classes.
This avoids the need to explicitly specify type mappings by every consumer of the JAR.

### Mapping existing types

Expand Down

0 comments on commit b3d70e9

Please sign in to comment.