Skip to content

Commit 2a83fcc

Browse files
Fix resx file
- Add missing entry. - Regenerate designer code to remove redundant properties. - Fix the namespace the resource designer generates with.
1 parent 1994320 commit 2a83fcc

File tree

3 files changed

+17
-36
lines changed

3 files changed

+17
-36
lines changed

src/Microsoft.OpenApi/Microsoft.OpenApi.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<EmbeddedResource Update="Properties\SRResource.resx">
4242
<Generator>ResXFileCodeGenerator</Generator>
4343
<LastGenOutput>SRResource.Designer.cs</LastGenOutput>
44+
<CustomToolNamespace>Microsoft.OpenApi</CustomToolNamespace>
4445
</EmbeddedResource>
4546
</ItemGroup>
4647

src/Microsoft.OpenApi/Properties/SRResource.Designer.cs

Lines changed: 10 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Microsoft.OpenApi/Properties/SRResource.resx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,12 @@
226226
<value>OpenAPI document must be added to an OpenApiWorkspace to be able to resolve external references.</value>
227227
</data>
228228
<data name="ParseServerUrlDefaultValueNotAvailable" xml:space="preserve">
229-
<value>Invalid server variable '{0}'. A value was not provided and no default value was provided.</value>
229+
<value>Invalid server variable '{0}'. A value was not provided and no default value was provided.</value>
230230
</data>
231231
<data name="ParseServerUrlValueNotValid" xml:space="preserve">
232-
<value>Value '{0}' is not a valid value for variable '{1}'. If an enum is provided, it should not be empty and the value provided should exist in the enum</value>
232+
<value>Value '{0}' is not a valid value for variable '{1}'. If an enum is provided, it should not be empty and the value provided should exist in the enum</value>
233233
</data>
234-
</root>
234+
<data name="ArgumentNull" xml:space="preserve">
235+
<value>The argument '{0}' is null.</value>
236+
</data>
237+
</root>

0 commit comments

Comments
 (0)