fix duplicate scalar "date"
This commit is contained in:
parent
d67f7c9926
commit
98a99ec630
|
@ -415,11 +415,15 @@ public class GraphQLSchemaGenerator {
|
|||
|
||||
private void generateSearchParamType(BufferedWriter writer, String name) throws IOException, FHIRException {
|
||||
String gqlName = getGqlname(name);
|
||||
if (gqlName.equals(name)) {
|
||||
if (gqlName.equals("date")) {
|
||||
writer.write("# Search Param ");
|
||||
writer.write(name);
|
||||
writer.write(": already defined as Primitive with JSON Format: string ");
|
||||
} else if (gqlName.equals(name)) {
|
||||
writer.write("scalar ");
|
||||
writer.write(name);
|
||||
writer.write(" # JSON Format: string");
|
||||
} else {
|
||||
} else {
|
||||
writer.write("# Search Param ");
|
||||
writer.write(name);
|
||||
writer.write(": use GraphQL Scalar type ");
|
||||
|
|
|
@ -418,7 +418,11 @@ public class GraphQLSchemaGenerator {
|
|||
|
||||
private void generateSearchParamType(BufferedWriter writer, String name) throws IOException, FHIRException {
|
||||
String gqlName = getGqlname(name);
|
||||
if (gqlName.equals(name)) {
|
||||
if (gqlName.equals("date")) {
|
||||
writer.write("# Search Param ");
|
||||
writer.write(name);
|
||||
writer.write(": already defined as Primitive with JSON Format: string ");
|
||||
} else if (gqlName.equals(name)) {
|
||||
writer.write("scalar ");
|
||||
writer.write(name);
|
||||
writer.write(" # JSON Format: string");
|
||||
|
|
Loading…
Reference in New Issue