diff --git a/.idea/tbe-PST.xml b/.idea/tbe-PST.xml deleted file mode 100644 index c79af194..00000000 --- a/.idea/tbe-PST.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/docs/generating-code-from-schema.md b/docs/generating-code-from-schema.md index 12429632..fdf717a5 100644 --- a/docs/generating-code-from-schema.md +++ b/docs/generating-code-from-schema.md @@ -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