'Using filterConfig.yml with DocFX
I am new to DocFx and I am trying to configure DocFx to filter out DataSet information from a project and no matter how I enter it - it just doesn't work.
The filterConfig.yml file has the following entries:
apiRules:
- exclude:
uidRegex: '^PhoenixControls\.Data\.AirStationDataSet'
- exclude
uidRegex: '^PhoenixControls\.Data\.ProductionOrderData'
- exclude:
uidRegex: '^PhoenixControls\.Data\.ReferenceDataSet'
Running docfx docfx.json --serve
Serves up the following error:
If I remove two of the -excludes - It will not error out - but it doesn't remove the objects I am trying to filter out.
What is the magic I need to perform to get object to filter out of DocFx?
Solution 1:[1]
There is a missing trailing ':' in line 5.
apiRules:
- exclude:
uidRegex: '^PhoenixControls\.Data\.AirStationDataSet'
- exclude:
uidRegex: '^PhoenixControls\.Data\.ProductionOrderData'
- exclude:
uidRegex: '^PhoenixControls\.Data\.ReferenceDataSet'
Give VS Code with the YAML exension a try to edit YAML. It will highlight such mistakes:

Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | stefan.seeland |
