Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Maximum call stack size exceeded #110

Closed
egreb opened this issue Mar 23, 2021 · 4 comments
Closed

RangeError: Maximum call stack size exceeded #110

egreb opened this issue Mar 23, 2021 · 4 comments

Comments

@egreb
Copy link

egreb commented Mar 23, 2021

What are the steps to reproduce this issue?

  1. Generate a swagger.json file with around 7000 lines
  2. Run orval with config:
module.exports = {
    petstore: {
        output: {
            mode: 'tags-split',
            target: 'src/hooks/api/generated/generated.ts',
            schemas: 'src/generated/models',
            client: 'react-query',
            mock: true,
        },
        input: {
            target: './src/swagger.json',
        },
    },
};

What happens?

Commands stops with following error:

RangeError: Maximum call stack size exceeded

What were you expecting to happen?

That generated.ts is generated

Any logs, error output, etc?

Nope

Any other comments?

What versions are you using?

Operating System: macOs Catalina
Package Version: 4.1.0
Browser Version: Not relevant

@anymaniax
Copy link
Collaborator

Hello, do you have a public version of your swagger or a way to reproduce the problem?

@egreb
Copy link
Author

egreb commented Mar 23, 2021

Yeah should have included that in the original post. Here you go.

big json file { "openapi": "3.0.1", "info": { "title": "Onyx", "description": "Onyx API Service", "license": { "name": "MIT", "url": "https://github.com/ignaciojvig/ChatAPI/blob/master/LICENSE" }, "version": "v1" }, "paths": { "/api/Asset/{id}": { "get": { "tags": [ "Asset" ], "operationId": "Get_Asset", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "IncludeParent", "in": "query", "schema": { "type": "boolean" } }, { "name": "IncludeChildren", "in": "query", "schema": { "type": "boolean" } }, { "name": "Workorders.Include", "in": "query", "schema": { "type": "boolean" } }, { "name": "Workorders.Limit", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "Workorders.Offset", "in": "query", "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AssetDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AssetDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssetDto" } } } } } }, "put": { "tags": [ "Asset" ], "operationId": "Update_Asset", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/AssetDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AssetDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssetDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AssetDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AssetDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AssetDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssetDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } }, "delete": { "tags": [ "Asset" ], "operationId": "Delete_Asset", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } } }, "/api/Asset": { "get": { "tags": [ "Asset" ], "operationId": "Get_Assets", "parameters": [ { "name": "Limit", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "Offset", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "ParentsOnly", "in": "query", "schema": { "type": "boolean" } }, { "name": "IncludeChildren", "in": "query", "schema": { "type": "boolean" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AssetDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AssetDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AssetDto" } } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } }, "post": { "tags": [ "Asset" ], "operationId": "Create_Asset", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/CreateAsset" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateAsset" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateAsset" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateAsset" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AssetDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AssetDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssetDto" } } } } } } }, "/api/Asset/{parentId}/children": { "get": { "tags": [ "Asset" ], "operationId": "Get_Asset_Children", "parameters": [ { "name": "parentId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AssetDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AssetDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AssetDto" } } } } } } } }, "/api/Auth/login": { "post": { "tags": [ "Auth" ], "operationId": "Auth_Login", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/AuthenticateRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthenticateRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthenticateRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AuthenticateRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthenticateResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthenticateResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthenticateResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } } }, "/api/Auth/refresh-token": { "post": { "tags": [ "Auth" ], "operationId": "Auth_Refresh_Token", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthenticateResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthenticateResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthenticateResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Auth/logout": { "post": { "tags": [ "Auth" ], "operationId": "Auth_Logout", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/RevokeTokenRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RevokeTokenRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RevokeTokenRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RevokeTokenRequest" } } } }, "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Company/{id}": { "get": { "tags": [ "Company" ], "operationId": "Get_Company", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CompanyDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CompanyDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CompanyDto" } } } } } }, "patch": { "tags": [ "Company" ], "operationId": "Patch_Company", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/JsonPatchDocument" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CompanyDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CompanyDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CompanyDto" } } } } } } }, "/api/Company": { "get": { "tags": [ "Company" ], "operationId": "Get_Companies", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyDto" } } } } } } } }, "/api/Company/create": { "post": { "tags": [ "Company" ], "operationId": "Create_Company", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/CreateCompany" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateCompany" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateCompany" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateCompany" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CompanyDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CompanyDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CompanyDto" } } } } } } }, "/api/CompanyCategory": { "get": { "tags": [ "CompanyCategory" ], "operationId": "Get_Company_Category", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyCategoryDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyCategoryDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyCategoryDto" } } } } } } } }, "/api/Dashboard": { "get": { "tags": [ "Dashboard" ], "operationId": "Get_Dashboard", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/DashboardResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/DashboardResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/DashboardResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } } }, "/api/Engagement": { "post": { "tags": [ "Engagement" ], "operationId": "Create_Engagement", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/CreateEngagement" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateEngagement" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateEngagement" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateEngagement" } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Engagement/{id}": { "delete": { "tags": [ "Engagement" ], "operationId": "Delete_Engagement", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/EngagementRole": { "get": { "tags": [ "EngagementRole" ], "operationId": "Get_EngagementRole", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EngagementRoleDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EngagementRoleDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EngagementRoleDto" } } } } } } }, "post": { "tags": [ "EngagementRole" ], "operationId": "Create_EngagementRole", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/CreateEngagementRole" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateEngagementRole" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateEngagementRole" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateEngagementRole" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/EngagementRoleDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/EngagementRoleDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EngagementRoleDto" } } } } } } }, "/api/EngagementRole/{id}": { "patch": { "tags": [ "EngagementRole" ], "operationId": "Patch_EngagementRole", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/JsonPatchDocument" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/EngagementRoleDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/EngagementRoleDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EngagementRoleDto" } } } } } } }, "/api/FileStorage/{systemDomainType}/{instanceId}": { "get": { "tags": [ "FileStorage" ], "operationId": "Get_Filestorage", "parameters": [ { "name": "systemDomainType", "in": "path", "required": true, "schema": { "$ref": "#/components/schemas/SystemDomainType" } }, { "name": "instanceId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FileStorageDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FileStorageDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FileStorageDto" } } } } } } }, "post": { "tags": [ "FileStorage" ], "operationId": "Upload_File", "parameters": [ { "name": "systemDomainType", "in": "path", "required": true, "schema": { "$ref": "#/components/schemas/SystemDomainType" } }, { "name": "instanceId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "required": [ "File", "Name" ], "type": "object", "properties": { "Name": { "type": "string" }, "Description": { "type": "string" }, "File": { "type": "string", "format": "binary" } } }, "encoding": { "Name": { "style": "form" }, "Description": { "style": "form" }, "File": { "style": "form" } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FileStorageDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FileStorageDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FileStorageDto" } } } } } } } }, "/api/FileStorage/{fileStorageId}": { "delete": { "tags": [ "FileStorage" ], "operationId": "Delete_Filestorage", "parameters": [ { "name": "fileStorageId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } } } } }, "/api/OrganizationUnit/{id}": { "get": { "tags": [ "OrganizationUnit" ], "operationId": "Get_OrganizationUnit", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/OrganizationUnitDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/OrganizationUnitDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/OrganizationUnitDto" } } } } } }, "patch": { "tags": [ "OrganizationUnit" ], "operationId": "Patch_OrganizationUnit", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/JsonPatchDocument" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/OrganizationUnitDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/OrganizationUnitDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/OrganizationUnitDto" } } } } } } }, "/api/OrganizationUnit": { "get": { "tags": [ "OrganizationUnit" ], "operationId": "Get_OrganizationUnits", "parameters": [ { "name": "getType", "in": "query", "schema": { "$ref": "#/components/schemas/Active" } }, { "name": "parentsOnly", "in": "query", "schema": { "type": "boolean", "default": true } }, { "name": "withChildren", "in": "query", "schema": { "type": "boolean", "default": true } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrganizationUnitDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrganizationUnitDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrganizationUnitDto" } } } } } } }, "post": { "tags": [ "OrganizationUnit" ], "operationId": "Create_OrganizationUnit", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/CreateOrganizationUnit" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateOrganizationUnit" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateOrganizationUnit" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateOrganizationUnit" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/OrganizationUnitDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/OrganizationUnitDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/OrganizationUnitDto" } } } } } } }, "/api/Person": { "get": { "tags": [ "Person" ], "operationId": "Get_Persons", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PersonDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PersonDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PersonDto" } } } } } } } }, "/api/Person/{id}": { "patch": { "tags": [ "Person" ], "operationId": "Patch_Person", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/JsonPatchDocument" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PersonDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PersonDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PersonDto" } } } } } }, "get": { "tags": [ "Person" ], "operationId": "Get_Person", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PersonDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PersonDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PersonDto" } } } } } } }, "/api/Profession": { "get": { "tags": [ "Profession" ], "operationId": "Get_Professions", "parameters": [ { "name": "isActive", "in": "query", "schema": { "type": "boolean" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProfessionDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProfessionDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProfessionDto" } } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } }, "post": { "tags": [ "Profession" ], "operationId": "Create_Profession", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/CreateProfession" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateProfession" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateProfession" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateProfession" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProfessionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProfessionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProfessionDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } } }, "/api/Profession/{id}": { "patch": { "tags": [ "Profession" ], "operationId": "Patch_Profession", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/JsonPatchDocument" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProfessionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProfessionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProfessionDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } }, "delete": { "tags": [ "Profession" ], "operationId": "Delete_Profession", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Project/{id}/get": { "post": { "tags": [ "Project" ], "operationId": "Get_Project", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/GetSingleProjectRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/GetSingleProjectRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/GetSingleProjectRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/GetSingleProjectRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProjectDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProjectDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProjectDto" } } } } } } }, "/api/Project/all": { "post": { "tags": [ "Project" ], "operationId": "Get_Projects", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/GetProjectsRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/GetProjectsRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/GetProjectsRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/GetProjectsRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectDto" } } } } } } } }, "/api/Project/{parentId}/children": { "get": { "tags": [ "Project" ], "operationId": "Get_Project_Children", "parameters": [ { "name": "parentId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectDto" } } } } } } } }, "/api/Project/create": { "post": { "tags": [ "Project" ], "operationId": "Create_Project", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/CreateProject" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateProject" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateProject" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateProject" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProjectDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProjectDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProjectDto" } } } } } } }, "/api/Project/page": { "post": { "tags": [ "Project" ], "operationId": "Get_Project_Page", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/GetProjectPageRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/GetProjectPageRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/GetProjectPageRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/GetProjectPageRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PagedListProjectDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PagedListProjectDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PagedListProjectDto" } } } } } } }, "/api/Project/{id}/patch": { "patch": { "tags": [ "Project" ], "operationId": "Patch_Project", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/JsonPatchDocument" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProjectDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProjectDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProjectDto" } } } } } } }, "/api/ProjectType": { "get": { "tags": [ "ProjectType" ], "operationId": "Get_ProjectTypes", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectTypeDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectTypeDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectTypeDto" } } } } } } } }, "/api/User": { "get": { "tags": [ "User" ], "operationId": "Get_UserAccounts", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserAccountDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserAccountDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserAccountDto" } } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } }, "post": { "tags": [ "User" ], "operationId": "Create_UserAccount", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/CreateUserAccount" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateUserAccount" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateUserAccount" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateUserAccount" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } } }, "/api/User/{id}": { "get": { "tags": [ "User" ], "operationId": "Get_UserAccount", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } }, "put": { "tags": [ "User" ], "operationId": "Update_UserAccount", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } }, "patch": { "tags": [ "User" ], "operationId": "Patch_UserAccount", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/JsonPatchDocument" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserAccountDto" } } } } } } }, "/api/Workflow": { "get": { "tags": [ "Workflow" ], "operationId": "Get_Workflows", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WorkflowDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WorkflowDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WorkflowDto" } } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } }, "post": { "tags": [ "Workflow" ], "operationId": "Create_Workflow", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } } }, "/api/Workflow/{id}": { "get": { "tags": [ "Workflow" ], "operationId": "Get_Workflow", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } }, "post": { "tags": [ "Workflow" ], "operationId": "Update_Workflow", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkflowDto" } } } } } } }, "/api/Workflow/{id}/update": { "post": { "tags": [ "Workflow" ], "operationId": "Add_WorkflowState", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/WorkflowStateDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowStateDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkflowStateDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/WorkflowStateDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WorkflowStateDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowStateDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkflowStateDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } } }, "/api/WorkflowState/{id}": { "get": { "tags": [ "WorkflowState" ], "operationId": "Get_WorfklowState", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WorkflowStateDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowStateDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkflowStateDto" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } }, "delete": { "tags": [ "WorkflowState" ], "operationId": "Delete_WorkflowState", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/WorkOrder/all": { "post": { "tags": [ "WorkOrder" ], "operationId": "Get_WorkorderPage", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/WorkorderPageRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkorderPageRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkorderPageRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/WorkorderPageRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PagedListWorkOrderDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PagedListWorkOrderDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PagedListWorkOrderDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } } }, "/api/WorkOrder/{id}": { "get": { "tags": [ "WorkOrder" ], "operationId": "Get_Workorder", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } }, "put": { "tags": [ "WorkOrder" ], "operationId": "Update_Workorder", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } }, "patch": { "tags": [ "WorkOrder" ], "operationId": "Patch_Workorder", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/JsonPatchDocument" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/WorkOrder": { "post": { "tags": [ "WorkOrder" ], "operationId": "Create_Workorder", "requestBody": { "content": { "application/json-patch+json": { "schema": { "$ref": "#/components/schemas/CreateWorkOrder" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateWorkOrder" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateWorkOrder" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateWorkOrder" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Server Error" } } } }, "/api/WorkOrderForm": { "get": { "tags": [ "WorkOrderForm" ], "operationId": "Get_CreateWorkorderForm", "parameters": [ { "name": "workOrderId", "in": "query", "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CreateWorkOrderResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateWorkOrderResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateWorkOrderResponse" } } } } } } }, "/api/WorkorderTransition/{workOrderId}": { "post": { "tags": [ "WorkorderTransition" ], "operationId": "Progress_WorkorderTransition", "parameters": [ { "name": "workOrderId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDto" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } } }, "components": { "schemas": { "Active": { "enum": [ "Active", "NotActive", "All" ], "type": "string" }, "ActivityTypeDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "activityTypeGroupId": { "type": "integer", "format": "int32" }, "isActive": { "type": "boolean" } }, "additionalProperties": false }, "AssetBase": { "required": [ "id", "name", "number" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "number": { "maxLength": 255, "minLength": 3, "type": "string" }, "name": { "maxLength": 255, "minLength": 3, "type": "string" }, "assetParentId": { "type": "integer", "format": "int32", "nullable": true }, "assetGroupId": { "type": "integer", "format": "int32", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "modifiedAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "AssetDto": { "required": [ "id", "name", "number" ], "type": "object", "properties": { "assetGroup": { "$ref": "#/components/schemas/AssetGroupDto" }, "hasChildren": { "type": "boolean" }, "parent": { "$ref": "#/components/schemas/AssetDto" }, "children": { "type": "array", "items": { "$ref": "#/components/schemas/AssetDto" }, "nullable": true }, "workOrder": { "type": "array", "items": { "$ref": "#/components/schemas/WorkOrderBaseDto" }, "nullable": true }, "subActivity": { "type": "array", "items": { "$ref": "#/components/schemas/SubActivityPrimitiveDto" }, "nullable": true }, "id": { "type": "integer", "format": "int32" }, "number": { "type": "string" }, "name": { "type": "string" }, "assetParentId": { "type": "integer", "format": "int32", "nullable": true }, "assetGroupId": { "type": "integer", "format": "int32", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "modifiedAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "AssetGroupDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "isActive": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "AuthenticateRequest": { "required": [ "password", "username" ], "type": "object", "properties": { "username": { "type": "string" }, "password": { "type": "string" } }, "additionalProperties": false }, "AuthenticateResponse": { "type": "object", "properties": { "userAccount": { "$ref": "#/components/schemas/UserAccountDto" }, "tokenExpires": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "CompanyCategoryDto": { "required": [ "id", "isActive", "name" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "isActive": { "type": "integer", "format": "int32" }, "company": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyDto" }, "nullable": true } }, "additionalProperties": false }, "CompanyCategoryType": { "enum": [ "Foo", "Bar" ], "type": "string" }, "CompanyContactDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "contactTitleType": { "type": "integer", "format": "int32" }, "contactPersonId": { "type": "integer", "format": "int32" }, "companyId": { "type": "integer", "format": "int32" }, "contact": { "$ref": "#/components/schemas/PersonDto" } }, "additionalProperties": false }, "CompanyDto": { "required": [ "categoryId", "id", "name", "number", "roleType" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "number": { "type": "string" }, "name": { "type": "string" }, "roleType": { "$ref": "#/components/schemas/CompanyRoleType" }, "email": { "type": "string", "nullable": true }, "url": { "type": "string", "nullable": true }, "categoryId": { "$ref": "#/components/schemas/CompanyCategoryType" }, "primaryContactPersonId": { "type": "integer", "format": "int32", "nullable": true }, "createdBy": { "type": "integer", "format": "int32" }, "createdAt": { "type": "string", "format": "date-time" }, "modifiedBy": { "type": "integer", "format": "int32" }, "modifiedAt": { "type": "string", "format": "date-time" }, "category": { "$ref": "#/components/schemas/CompanyCategoryDto" }, "createdByNavigation": { "$ref": "#/components/schemas/PersonDto" }, "modifiedByNavigation": { "$ref": "#/components/schemas/PersonDto" }, "primaryContactPerson": { "$ref": "#/components/schemas/PersonDto" }, "contacts": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyContactDto" }, "nullable": true }, "engagement": { "type": "array", "items": { "$ref": "#/components/schemas/EngagementDto" }, "nullable": true } }, "additionalProperties": false }, "CompanyRoleType": { "enum": [ "Foo", "Bar", "Foobar" ], "type": "string" }, "CreateAsset": { "required": [ "name", "number" ], "type": "object", "properties": { "name": { "maxLength": 255, "minLength": 3, "type": "string" }, "number": { "maxLength": 255, "minLength": 3, "type": "string" }, "assetParentId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "CreateCompany": { "required": [ "categoryId", "name", "number", "roleType" ], "type": "object", "properties": { "name": { "maxLength": 255, "minLength": 3, "type": "string" }, "number": { "maxLength": 255, "minLength": 3, "type": "string" }, "roleType": { "$ref": "#/components/schemas/CompanyRoleType" }, "email": { "type": "string", "nullable": true }, "url": { "type": "string", "nullable": true }, "categoryId": { "$ref": "#/components/schemas/CompanyCategoryType" }, "primaryContactPersonId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "CreateEngagement": { "type": "object", "properties": { "personId": { "minimum": 0, "exclusiveMinimum": true, "type": "integer", "format": "int32" }, "engagementRoleId": { "minimum": 0, "exclusiveMinimum": true, "type": "integer", "format": "int32" }, "workorderId": { "minimum": 0, "exclusiveMinimum": true, "type": "integer", "format": "int32" } }, "additionalProperties": false }, "CreateEngagementRole": { "required": [ "isActive", "name" ], "type": "object", "properties": { "name": { "maxLength": 255, "minLength": 3, "type": "string" }, "isActive": { "type": "boolean" } }, "additionalProperties": false }, "CreateOrganizationUnit": { "required": [ "isActive", "unit" ], "type": "object", "properties": { "unit": { "maxLength": 255, "minLength": 3, "type": "string" }, "description": { "type": "string", "nullable": true }, "parentOrganizationUnitId": { "type": "integer", "format": "int32", "nullable": true }, "isActive": { "type": "boolean" } }, "additionalProperties": false }, "CreateProfession": { "required": [ "isActive", "name" ], "type": "object", "properties": { "name": { "maxLength": 255, "minLength": 3, "type": "string" }, "isActive": { "type": "boolean" } }, "additionalProperties": false }, "CreateProject": { "required": [ "description", "isActive", "name", "organizationUnitId", "projectNo", "projectTypeId", "supervisorPersonId" ], "type": "object", "properties": { "name": { "maxLength": 255, "minLength": 3, "type": "string" }, "projectNo": { "maxLength": 255, "minLength": 3, "type": "string" }, "description": { "maxLength": 255, "minLength": 3, "type": "string" }, "startDate": { "type": "string", "format": "date-time", "nullable": true }, "endDate": { "type": "string", "format": "date-time", "nullable": true }, "parentProjectId": { "type": "integer", "format": "int32", "nullable": true }, "supervisorPersonId": { "type": "integer", "format": "int32" }, "organizationUnitId": { "type": "integer", "format": "int32" }, "projectTypeId": { "type": "integer", "format": "int32" }, "isActive": { "type": "boolean" } }, "additionalProperties": false }, "CreateUserAccount": { "required": [ "email", "firstName", "lastName" ], "type": "object", "properties": { "email": { "type": "string" }, "phoneNumber": { "type": "string", "nullable": true }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "professionId": { "type": "integer", "format": "int32", "nullable": true }, "language": { "$ref": "#/components/schemas/Language" }, "personId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "CreateWorkOrder": { "required": [ "assetId", "createdByPersonId", "number", "organizationUnitId", "professionId", "responsiblePersonId", "subject" ], "type": "object", "properties": { "subject": { "maxLength": 255, "minLength": 3, "type": "string" }, "number": { "maxLength": 255, "minLength": 3, "type": "string" }, "assetId": { "minimum": 0, "exclusiveMinimum": true, "minLength": 1, "type": "integer", "format": "int32" }, "responsiblePersonId": { "minimum": 0, "exclusiveMinimum": true, "minLength": 1, "type": "integer", "format": "int32" }, "organizationUnitId": { "minimum": 0, "exclusiveMinimum": true, "minLength": 1, "type": "integer", "format": "int32" }, "professionId": { "minimum": 0, "exclusiveMinimum": true, "minLength": 1, "type": "integer", "format": "int32" }, "createdByPersonId": { "minimum": 0, "exclusiveMinimum": true, "minLength": 1, "type": "integer", "format": "int32" }, "fromDate": { "type": "string", "format": "date-time", "nullable": true }, "toDate": { "type": "string", "format": "date-time", "nullable": true }, "description": { "type": "string", "nullable": true }, "shutdownRequired": { "type": "boolean" }, "riskAssessmentRequired": { "type": "boolean" } }, "additionalProperties": false }, "CreateWorkOrderResponse": { "type": "object", "properties": { "professions": { "type": "array", "items": { "$ref": "#/components/schemas/ProfessionDto" }, "nullable": true }, "assets": { "type": "array", "items": { "$ref": "#/components/schemas/AssetDto" }, "nullable": true }, "workFlows": { "type": "array", "items": { "$ref": "#/components/schemas/WorkflowDto" }, "nullable": true }, "workOrder": { "$ref": "#/components/schemas/WorkOrderDto" }, "persons": { "type": "array", "items": { "$ref": "#/components/schemas/PersonDto" }, "nullable": true }, "organizationUnits": { "type": "array", "items": { "$ref": "#/components/schemas/OrganizationUnitDto" }, "nullable": true }, "activityTypes": { "type": "array", "items": { "$ref": "#/components/schemas/ActivityTypeDto" }, "nullable": true }, "id": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "DashboardResponse": { "type": "object", "properties": { "workOrders": { "type": "array", "items": { "$ref": "#/components/schemas/WorkOrderBaseDto" }, "nullable": true }, "assets": { "type": "array", "items": { "$ref": "#/components/schemas/AssetBase" }, "nullable": true } }, "additionalProperties": false }, "EngagementDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "workOrderId": { "type": "integer", "format": "int32", "nullable": true }, "engagementRoleId": { "type": "integer", "format": "int32" }, "personId": { "type": "integer", "format": "int32", "nullable": true }, "companyId": { "type": "integer", "format": "int32", "nullable": true }, "company": { "$ref": "#/components/schemas/CompanyDto" }, "engagementRole": { "$ref": "#/components/schemas/EngagementRoleDto" }, "person": { "$ref": "#/components/schemas/PersonDto" }, "workOrder": { "$ref": "#/components/schemas/WorkOrderDto" }, "hours": { "type": "array", "items": { "$ref": "#/components/schemas/HoursDto" }, "nullable": true } }, "additionalProperties": false }, "EngagementRoleDto": { "required": [ "id", "isActive", "name" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "maxLength": 255, "minLength": 3, "type": "string" }, "companyRoleType": { "type": "integer", "format": "int32" }, "isActive": { "type": "boolean" } }, "additionalProperties": false }, "FileStorageDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "fileStorageItemId": { "type": "integer", "format": "int32" }, "systemDomainType": { "type": "integer", "format": "int32" }, "instanceId": { "type": "integer", "format": "int32" }, "documentTypeId": { "type": "integer", "format": "int32", "nullable": true }, "description": { "type": "string", "nullable": true }, "fileStorageItem": { "$ref": "#/components/schemas/FileStorageItemDto" } }, "additionalProperties": false }, "FileStorageItemDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "url": { "type": "string", "nullable": true }, "contentType": { "type": "string", "nullable": true } }, "additionalProperties": false }, "GetProjectPageRequest": { "type": "object", "properties": { "search": { "type": "string", "nullable": true }, "isActive": { "type": "boolean", "nullable": true }, "supervisorId": { "type": "integer", "format": "int32", "nullable": true }, "includeChildren": { "type": "boolean", "nullable": true }, "includeSupervisor": { "type": "boolean", "nullable": true }, "startDate": { "$ref": "#/components/schemas/Timespan" }, "endDate": { "$ref": "#/components/schemas/Timespan" }, "orderBy": { "$ref": "#/components/schemas/OrderBy" }, "page": { "type": "integer", "format": "int32" }, "size": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "GetProjectsRequest": { "type": "object", "properties": { "search": { "type": "string", "nullable": true }, "isActive": { "type": "boolean", "nullable": true }, "supervisorId": { "type": "integer", "format": "int32", "nullable": true }, "includeChildren": { "type": "boolean", "nullable": true }, "includeSupervisor": { "type": "boolean", "nullable": true }, "startDate": { "$ref": "#/components/schemas/Timespan" }, "endDate": { "$ref": "#/components/schemas/Timespan" }, "orderBy": { "$ref": "#/components/schemas/OrderBy" } }, "additionalProperties": false }, "GetSingleProjectRequest": { "type": "object", "properties": { "includeSupervisor": { "type": "boolean", "nullable": true }, "includeParent": { "type": "boolean", "nullable": true }, "includeProjectType": { "type": "boolean", "nullable": true }, "includeChildren": { "type": "boolean", "nullable": true } }, "additionalProperties": false }, "HoursDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "createdDate": { "type": "string", "format": "date-time" }, "engagementId": { "type": "integer", "format": "int32", "nullable": true }, "reportedTime": { "type": "number", "format": "double" }, "hourlyCost": { "type": "number", "format": "double" } }, "additionalProperties": false }, "JsonPatchDocument": { "type": "array", "items": { "$ref": "#/components/schemas/Operation" }, "description": "Array of operations to perform" }, "Language": { "enum": [ "en", "nb" ], "type": "string" }, "Operation": { "type": "object", "properties": { "op": { "type": "string" }, "value": { "nullable": true }, "path": { "type": "string" } } }, "OrderBy": { "required": [ "id" ], "type": "object", "properties": { "id": { "type": "string" }, "desc": { "type": "boolean" } }, "additionalProperties": false }, "OrganizationUnitDto": { "required": [ "id", "isActive", "unit" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "unit": { "maxLength": 255, "minLength": 3, "type": "string" }, "description": { "type": "string", "nullable": true }, "parentOrganizationUnitId": { "type": "integer", "format": "int32", "nullable": true }, "isParent": { "type": "boolean" }, "isActive": { "type": "boolean" }, "parentOrganizationUnit": { "$ref": "#/components/schemas/OrganizationUnitDto" }, "inverseParentOrganizationUnit": { "type": "array", "items": { "$ref": "#/components/schemas/OrganizationUnitDto" }, "nullable": true } }, "additionalProperties": false }, "PagedListProjectDto": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectDto" }, "nullable": true }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "pageCount": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "PagedListWorkOrderDto": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/components/schemas/WorkOrderDto" }, "nullable": true }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "pageCount": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "PersonDto": { "required": [ "createdAt", "firstname", "fullname", "id", "isActive", "modifiedAt", "organizationUnitId", "professionId", "surname" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "firstname": { "maxLength": 255, "minLength": 3, "type": "string" }, "surname": { "maxLength": 255, "minLength": 3, "type": "string" }, "fullname": { "type": "string", "readOnly": true }, "emailAddress": { "type": "string", "format": "email", "nullable": true }, "phoneNumber": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "isActive": { "type": "boolean" }, "professionId": { "type": "integer", "format": "int32" }, "organizationUnitId": { "type": "integer", "format": "int32" }, "createdAt": { "type": "string", "format": "date-time" }, "modifiedAt": { "type": "string", "format": "date-time" }, "organizationUnit": { "$ref": "#/components/schemas/OrganizationUnitDto" }, "profession": { "$ref": "#/components/schemas/ProfessionDto" } }, "additionalProperties": false }, "PriorityTypeEntity": { "enum": [ "Low", "Medium", "High" ], "type": "string" }, "ProblemDetails": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "status": { "type": "integer", "format": "int32", "nullable": true }, "detail": { "type": "string", "nullable": true }, "instance": { "type": "string", "nullable": true } }, "additionalProperties": { } }, "ProfessionDto": { "required": [ "id", "ident", "isActive", "name" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "ident": { "type": "string" }, "name": { "type": "string" }, "isActive": { "type": "boolean" } }, "additionalProperties": false }, "ProjectDto": { "required": [ "createdAt", "createdBy", "description", "id", "isActive", "modifiedAt", "modifiedBy", "name", "organizationUnitId", "projectNo", "projectTypeId", "supervisorPersonId" ], "type": "object", "properties": { "parent": { "$ref": "#/components/schemas/ProjectDto" }, "supervisor": { "$ref": "#/components/schemas/PersonDto" }, "projectType": { "$ref": "#/components/schemas/ProjectTypeDto" }, "hasChildren": { "type": "boolean" }, "children": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectDto" }, "nullable": true }, "id": { "type": "integer", "format": "int32" }, "parentProjectId": { "type": "integer", "format": "int32", "nullable": true }, "projectNo": { "maxLength": 255, "minLength": 3, "type": "string" }, "name": { "maxLength": 255, "minLength": 3, "type": "string" }, "isActive": { "type": "boolean" }, "description": { "maxLength": 255, "minLength": 3, "type": "string" }, "supervisorPersonId": { "type": "integer", "format": "int32" }, "projectTypeId": { "type": "integer", "format": "int32" }, "startDate": { "type": "string", "format": "date-time", "nullable": true }, "endDate": { "type": "string", "format": "date-time", "nullable": true }, "completedDate": { "type": "string", "format": "date-time", "nullable": true }, "organizationUnitId": { "type": "integer", "format": "int32" }, "createdBy": { "type": "integer", "format": "int32" }, "createdAt": { "type": "string", "format": "date-time" }, "modifiedBy": { "type": "integer", "format": "int32" }, "modifiedAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "ProjectTypeDto": { "required": [ "id", "isActive", "name", "projectTypeNo" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "projectTypeNo": { "type": "string" }, "name": { "type": "string" }, "isActive": { "type": "boolean" } }, "additionalProperties": false }, "RefreshTokenEntity": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "token": { "type": "string", "nullable": true }, "expires": { "type": "string", "format": "date-time" }, "created": { "type": "string", "format": "date-time" }, "createdByIp": { "type": "string", "nullable": true }, "revoked": { "type": "string", "format": "date-time", "nullable": true }, "revokedByIp": { "type": "string", "nullable": true }, "replacedByToken": { "type": "string", "nullable": true }, "userAccountId": { "type": "integer", "format": "int32" }, "isExpired": { "type": "boolean", "readOnly": true }, "isActive": { "type": "boolean", "readOnly": true } }, "additionalProperties": false }, "RevokeTokenRequest": { "required": [ "token" ], "type": "object", "properties": { "token": { "type": "string" } }, "additionalProperties": false }, "SubActivityPrimitiveDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "description": { "type": "string", "nullable": true }, "activityTypeId": { "type": "integer", "format": "int32" }, "professionId": { "type": "integer", "format": "int32" }, "assetId": { "type": "integer", "format": "int32" }, "fromDate": { "type": "string", "format": "date-time" }, "toDate": { "type": "string", "format": "date-time" }, "subActivityStateType": { "type": "integer", "format": "int32" }, "comment": { "type": "string", "nullable": true }, "respPersonId": { "type": "integer", "format": "int32" }, "createdAt": { "type": "string", "format": "date-time" }, "modifiedAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "SystemDomainType": { "enum": [ "WorkOrder", "Asset" ], "type": "string" }, "Timespan": { "type": "object", "properties": { "start": { "type": "string", "format": "date-time", "nullable": true }, "stop": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "UserAccountDto": { "required": [ "email", "firstName", "lastName" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "email": { "type": "string" }, "phoneNumber": { "type": "string", "nullable": true }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "token": { "type": "string", "nullable": true }, "professionId": { "type": "integer", "format": "int32", "nullable": true }, "language": { "$ref": "#/components/schemas/Language" }, "createdAt": { "type": "string", "format": "date-time", "nullable": true }, "updatedAt": { "type": "string", "format": "date-time", "nullable": true }, "person": { "$ref": "#/components/schemas/PersonDto" }, "profession": { "$ref": "#/components/schemas/ProfessionDto" }, "refreshToken": { "type": "array", "items": { "$ref": "#/components/schemas/RefreshTokenEntity" }, "nullable": true } }, "additionalProperties": false }, "WorkflowDto": { "required": [ "isActive", "isDefault", "nameLocale" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "nameLocale": { "maxLength": 255, "minLength": 3, "type": "string" }, "workflowType": { "type": "integer", "format": "int32" }, "isDefault": { "type": "boolean" }, "isActive": { "type": "boolean" }, "workflowState": { "type": "array", "items": { "$ref": "#/components/schemas/WorkflowStateDto" }, "nullable": true } }, "additionalProperties": false }, "WorkflowStateDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "workflowId": { "type": "integer", "format": "int32" }, "nextWorkflowStateId": { "type": "integer", "format": "int32", "nullable": true }, "nameLocale": { "type": "string", "nullable": true }, "transitionNameLocale": { "type": "string", "nullable": true }, "isActive": { "type": "boolean" }, "requireProfessionId": { "type": "integer", "format": "int32", "nullable": true }, "requireSecurityGroupId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "WorkOrderBaseDto": { "required": [ "id" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "number": { "type": "string", "nullable": true }, "subject": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "fromDate": { "type": "string", "format": "date-time", "nullable": true }, "toDate": { "type": "string", "format": "date-time", "nullable": true }, "shutdownRequired": { "type": "boolean" }, "riskAssessmentRequired": { "type": "boolean" }, "createdAt": { "type": "string", "format": "date-time" }, "modifiedAt": { "type": "string", "format": "date-time" }, "priorityType": { "$ref": "#/components/schemas/PriorityTypeEntity" }, "type": { "$ref": "#/components/schemas/WorkOrderType" }, "organizationUnitId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "WorkOrderDto": { "required": [ "id" ], "type": "object", "properties": { "activityType": { "$ref": "#/components/schemas/ActivityTypeDto" }, "asset": { "$ref": "#/components/schemas/AssetDto" }, "createdByNavigation": { "$ref": "#/components/schemas/PersonDto" }, "modifiedByNavigation": { "$ref": "#/components/schemas/PersonDto" }, "organizationUnit": { "$ref": "#/components/schemas/OrganizationUnitDto" }, "profession": { "$ref": "#/components/schemas/ProfessionDto" }, "responsiblePerson": { "$ref": "#/components/schemas/PersonDto" }, "workflowState": { "$ref": "#/components/schemas/WorkflowStateDto" }, "engagements": { "type": "array", "items": { "$ref": "#/components/schemas/EngagementDto" }, "nullable": true }, "id": { "type": "integer", "format": "int32" }, "number": { "type": "string", "nullable": true }, "subject": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "fromDate": { "type": "string", "format": "date-time", "nullable": true }, "toDate": { "type": "string", "format": "date-time", "nullable": true }, "shutdownRequired": { "type": "boolean" }, "riskAssessmentRequired": { "type": "boolean" }, "createdAt": { "type": "string", "format": "date-time" }, "modifiedAt": { "type": "string", "format": "date-time" }, "priorityType": { "$ref": "#/components/schemas/PriorityTypeEntity" }, "type": { "$ref": "#/components/schemas/WorkOrderType" }, "organizationUnitId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "WorkorderPageRequest": { "type": "object", "properties": { "search": { "type": "string", "nullable": true }, "responsibleId": { "type": "integer", "format": "int32", "nullable": true }, "assetId": { "type": "integer", "format": "int32", "nullable": true }, "createBy": { "type": "integer", "format": "int32", "nullable": true }, "orderBy": { "$ref": "#/components/schemas/OrderBy" }, "fromDate": { "$ref": "#/components/schemas/Timespan" }, "toDate": { "$ref": "#/components/schemas/Timespan" }, "page": { "type": "integer", "format": "int32" }, "size": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "WorkOrderType": { "enum": [ "Standard", "Frequency" ], "type": "string" } }, "securitySchemes": { "Bearer": { "type": "apiKey", "description": "JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\"", "name": "Authorization", "in": "header" } } }, "security": [ { "Bearer": [ ] } ] }

@anymaniax
Copy link
Collaborator

Should be fixed if you install orval@next

@egreb
Copy link
Author

egreb commented Mar 24, 2021

Yes now it works, and fast! Thank you for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants