Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit 70f484f

Browse files
author
Craigory Coppola
committed
fix(nxdoc): anyOf is not officially supported by nx, but oneOf is
1 parent 717b276 commit 70f484f

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
### Features
1515

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

packages/core/src/executors/format/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"description": "Run 3rd party analyzers and apply fixes."
2626
},
2727
"diagnostics": {
28-
"anyOf": [
28+
"oneOf": [
2929
{
3030
"type": "string",
3131
"description": "A space separated list of diagnostic ids to use as a filter when fixing code style or 3rd party analyzers."

packages/nxdoc/src/generators/generate-docs/schema-json.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface PropertyConfiguration {
99
type: string;
1010
description: string;
1111
alias: string[];
12-
anyOf?: PropertyConfiguration[];
12+
oneOf?: PropertyConfiguration[];
1313
items: {
1414
type: string;
1515
};

packages/nxdoc/src/generators/generate-docs/templates/detail/__generatorFileName__.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

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

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

0 commit comments

Comments
 (0)