Skip to content

Commit

Permalink
fix(nxdoc): anyOf is not officially supported by nx, but oneOf is
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed May 24, 2021
1 parent 717b276 commit 70f484f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

### Features

- **nx-docs:** support for anyOf in schema.json files ([7ab15c6](https://github.com/nx-dotnet/nx-dotnet/commit/7ab15c61122605204047758ca565f4760498f255))
- **nx-docs:** support for oneOf in schema.json files ([7ab15c6](https://github.com/nx-dotnet/nx-dotnet/commit/7ab15c61122605204047758ca565f4760498f255))
- **nxdoc:** include getting started text ([db3ec62](https://github.com/nx-dotnet/nx-dotnet/commit/db3ec625d5998d96aed82edbbd2c2d017a7ea3be))
- **nxdoc:** mark required properties ([8b8b01c](https://github.com/nx-dotnet/nx-dotnet/commit/8b8b01c87d8446ac7ec42b029825fb76463e7523))

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/executors/format/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"description": "Run 3rd party analyzers and apply fixes."
},
"diagnostics": {
"anyOf": [
"oneOf": [
{
"type": "string",
"description": "A space separated list of diagnostic ids to use as a filter when fixing code style or 3rd party analyzers."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface PropertyConfiguration {
type: string;
description: string;
alias: string[];
anyOf?: PropertyConfiguration[];
oneOf?: PropertyConfiguration[];
items: {
type: string;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

### <%- (schema.required?.includes?.(property)) ? `<span className="required">${property}</span>` : property %>

- <% if (!config.anyOf) { %>(<%=config.type%>): <%= config.description %>
<%} else { config.anyOf.forEach(x => {%>
- <% if (!config.oneOf) { %>(<%=config.type%>): <%= config.description %>
<%} else { config.oneOf.forEach(x => {%>
- (<%= x.type %>): <%=x.description%>
<% })}})} %>

0 comments on commit 70f484f

Please sign in to comment.