forked from loafle/openapi-generator-original
		
	fix object declaration in model
This commit is contained in:
		
							parent
							
								
									7ca8edb590
								
							
						
					
					
						commit
						b5f0b24bae
					
				@ -26,6 +26,6 @@ fi
 | 
			
		||||
 | 
			
		||||
# if you've executed sbt assembly previously it will use that instead.
 | 
			
		||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
 | 
			
		||||
ags="$@ generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l typescript-angular -o samples/client/petstore/typescript-angular-v2/default --additional-properties ngVersion=2"
 | 
			
		||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l typescript-angular -o samples/client/petstore/typescript-angular-v2/default --additional-properties ngVersion=2 $@"
 | 
			
		||||
 | 
			
		||||
java $JAVA_OPTS -jar $executable $ags
 | 
			
		||||
 | 
			
		||||
@ -176,8 +176,6 @@ public class TypeScriptAngularClientCodegen extends AbstractTypeScriptClientCode
 | 
			
		||||
    public String getTypeDeclaration(Schema p) {
 | 
			
		||||
        if (p instanceof FileSchema) {
 | 
			
		||||
            return "Blob";
 | 
			
		||||
        } else if (!StringUtils.isEmpty(p.get$ref())) {
 | 
			
		||||
            return "any";
 | 
			
		||||
        } else {
 | 
			
		||||
            return super.getTypeDeclaration(p);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -107,8 +107,6 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege
 | 
			
		||||
            return "any";
 | 
			
		||||
        } else if (p instanceof BinarySchema) {
 | 
			
		||||
            return "any";
 | 
			
		||||
        } else if (!StringUtils.isEmpty(p.get$ref())) { // model
 | 
			
		||||
            return "any";
 | 
			
		||||
        } else {
 | 
			
		||||
            return super.getTypeDeclaration(p);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -156,8 +156,6 @@ public class TypeScriptInversifyClientCodegen extends AbstractTypeScriptClientCo
 | 
			
		||||
    public String getTypeDeclaration(Schema p) {
 | 
			
		||||
        if (p instanceof FileSchema) {
 | 
			
		||||
            return "Blob";
 | 
			
		||||
        } else if (!StringUtils.isEmpty(p.get$ref())) {
 | 
			
		||||
            return "any";
 | 
			
		||||
        } else {
 | 
			
		||||
            return super.getTypeDeclaration(p);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user