Comments (1)
A command for validating a configuration document (and reference manifest, honestly) would be deeply useful for users and authoring tools alike, I think.
Maybe something like:
# By path
dsc validate document --path ./myconfig.dsc.config.yaml
# From stdin, with detailed info as JSON objects
$myConfig | dsc validate document --detailed
# As above, but for manifests:
$myResource | dsc validate manifest
The JSON objects from the output could contain information that the eventual extension could use, but at the very least they would tell the author the context and message that failed validation.
Another useful eventual option would be to enable suggestions, like using newer versions of resources, or noticing you're supplying a credential without using secureString
, etc.
from dsc.
Related Issues (20)
- Pending reboot should have embedded schema for assertions
- PSDSCAdapter cannot process argument transformation HOT 2
- Remove static validation of input HOT 4
- Large output not returned HOT 2
- `dsc` should add it's home directory to `PATH` to find included resources
- Cache entry path not found
- Copy loop iteration HOT 8
- Export operation method cannot be called on a null-valued expression HOT 2
- Expressions is missing array index support
- Duplicates allowed for parameters and values (or any HashMap) HOT 3
- Need to support getting traces from child `dsc` processes HOT 7
- `exporter` kind of resource HOT 3
- Better error message when no input is provided to PowerShell adapters HOT 2
- Multi-string support HOT 7
- Nightly artifact build HOT 2
- Plan for existing DSC 1.1 LCM users to migrate to DSC 3.0
- Publish WinGet package HOT 1
- Offline image configuration HOT 8
- Publish echo resource as `Microsoft.DSC.Debug/Echo`
- Canonicalize `dsc schema` command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsc.