diff --git a/core/apps/ame-e2e/src/support/commands.ts b/core/apps/ame-e2e/src/support/commands.ts index 8fd0242c..d3b6d856 100644 --- a/core/apps/ame-e2e/src/support/commands.ts +++ b/core/apps/ame-e2e/src/support/commands.ts @@ -535,13 +535,13 @@ Cypress.Commands.add('saveAspectModelToWorkspace', () => { Cypress.Commands.add('openGenerationOpenApiSpec', () => { cy.intercept( 'POST', - 'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=json&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&resourcePath=null&ymlProperties=&jsonProperties=', + 'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=json&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&resourcePath=&ymlProperties=&jsonProperties=', {fixture: 'valid-open-api.json'}, ); cy.intercept( 'POST', - 'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=yaml&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&resourcePath=null&ymlProperties=&jsonProperties=', + 'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=yaml&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&resourcePath=&ymlProperties=&jsonProperties=', {fixture: 'valid-open-api.yaml'}, ); diff --git a/core/libs/editor/src/lib/editor-toolbar/components/generate-open-api/generate-open-api.component.ts b/core/libs/editor/src/lib/editor-toolbar/components/generate-open-api/generate-open-api.component.ts index 50c1c98c..563f5040 100644 --- a/core/libs/editor/src/lib/editor-toolbar/components/generate-open-api/generate-open-api.component.ts +++ b/core/libs/editor/src/lib/editor-toolbar/components/generate-open-api/generate-open-api.component.ts @@ -111,7 +111,7 @@ export class GenerateOpenApiComponent implements OnInit, OnDestroy { activateResourcePath: new FormControl(false), output: new FormControl('yaml'), paging: new FormControl('NO_PAGING'), - resourcePath: new FormControl(null), + resourcePath: new FormControl(''), file: new FormControl(null), ymlProperties: new FormControl(null), jsonProperties: new FormControl(null), @@ -129,7 +129,7 @@ export class GenerateOpenApiComponent implements OnInit, OnDestroy { resourcePathControl?.setValue('/resource/{resourceId}'); resourcePathControl?.setValidators(this.resourcePathValidators); } else { - resourcePathControl?.setValue(null); + resourcePathControl?.setValue(''); resourcePathControl?.setValidators(null); }