File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,16 @@ jobs:
65
65
run : |
66
66
dotnet build
67
67
68
-
69
- - name : Lint OpenAPI doc
68
+ - name : Create openapi.json
70
69
shell : bash
71
70
run : |
72
71
API_VERSION=$(grep -oP 'public const string Version = "\K[^"]+' ./src/AzureOpenAIProxy.ApiApp/Constants.cs)
73
72
dotnet swagger tofile --output ./openapi.json ./src/AzureOpenAIProxy.ApiApp/bin/Debug/net8.0/AzureOpenAIProxy.ApiApp.dll $API_VERSION
74
- spectral lint openapi.json
73
+
74
+ - name : Lint OpenAPI doc
75
+ uses : stoplightio/spectral-action@latest
76
+ with :
77
+ file_glob : ' ./openapi.json'
75
78
76
79
- name : Install playwright
77
80
shell : pwsh
Original file line number Diff line number Diff line change @@ -79,12 +79,16 @@ jobs:
79
79
run : |
80
80
dotnet build -c Release
81
81
82
- - name : Lint OpenAPI doc
82
+ - name : Create openapi.json
83
83
shell : bash
84
84
run : |
85
85
API_VERSION=$(grep -oP 'public const string Version = "\K[^"]+' ./src/AzureOpenAIProxy.ApiApp/Constants.cs)
86
86
dotnet swagger tofile --output ./openapi.json ./src/AzureOpenAIProxy.ApiApp/bin/Debug/net8.0/AzureOpenAIProxy.ApiApp.dll $API_VERSION
87
- spectral lint openapi.json
87
+
88
+ - name : Lint OpenAPI doc
89
+ uses : stoplightio/spectral-action@latest
90
+ with :
91
+ file_glob : ' ./openapi.json'
88
92
89
93
- name : Test solution
90
94
You can’t perform that action at this time.
0 commit comments