All Projects → javanile → yamlinc

javanile / yamlinc

Licence: MIT license
Compose multiple YAML files into one with $include tag. Split Swagger/OpenAPI into multiple YAML files.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to yamlinc

pyaml env
Parse YAML configuration with environment variables in Python
Stars: ✭ 36 (-65.05%)
Mutual labels:  yaml, yaml-parser
Swaggen
OpenAPI/Swagger 3.0 Parser and Swift code generator
Stars: ✭ 385 (+273.79%)
Mutual labels:  yaml, openapi
counsel-jq
Traverse complex JSON and YAML structures with live feedback
Stars: ✭ 99 (-3.88%)
Mutual labels:  yaml, yaml-parser
KaiZen-OpenApi-Parser
High-performance Parser, Validator, and Java Object Model for OpenAPI 3.x
Stars: ✭ 119 (+15.53%)
Mutual labels:  yaml, openapi
Swagger meqa
Auto generate and run tests using swagger/OpenAPI spec, no coding needed
Stars: ✭ 151 (+46.6%)
Mutual labels:  yaml, openapi
php-helpers
A Collection of useful php helper functions.
Stars: ✭ 26 (-74.76%)
Mutual labels:  yaml, yaml-parser
ide-yaml
Atom-IDE support for YAML language
Stars: ✭ 16 (-84.47%)
Mutual labels:  yaml, yaml-parser
parse it
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Stars: ✭ 86 (-16.5%)
Mutual labels:  yaml, yaml-parser
Kaizen Openapi Editor
Eclipse Editor for the Swagger-OpenAPI Description Language
Stars: ✭ 97 (-5.83%)
Mutual labels:  yaml, openapi
Swurg
Parse OpenAPI documents into Burp Suite for automating OpenAPI-based APIs security assessments (approved by PortSwigger for inclusion in their official BApp Store).
Stars: ✭ 94 (-8.74%)
Mutual labels:  yaml, openapi
openapi-specification
Pinnacle REST API Open API Specification (swagger)
Stars: ✭ 20 (-80.58%)
Mutual labels:  yaml, openapi
clj-yaml
YAML encoding and decoding for Clojure
Stars: ✭ 97 (-5.83%)
Mutual labels:  yaml, yaml-parser
dahgan
A YAML Parser
Stars: ✭ 14 (-86.41%)
Mutual labels:  yaml, yaml-parser
Datamodel Code Generator
Pydantic model generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
Stars: ✭ 393 (+281.55%)
Mutual labels:  yaml, openapi
yaml-include
Valid, modular YAML documents with js-yaml. Seriously.
Stars: ✭ 39 (-62.14%)
Mutual labels:  yaml, openapi
hikaru
Move smoothly between Kubernetes YAML and Python for creating/updating/componentizing configurations.
Stars: ✭ 60 (-41.75%)
Mutual labels:  yaml, yaml-parser
vscode-yaml-sort
This VS Code extension exposes the possibility to sort, format and validate yaml files.
Stars: ✭ 25 (-75.73%)
Mutual labels:  yaml
surger
⚡ Is there surge pricing around me right now?
Stars: ✭ 20 (-80.58%)
Mutual labels:  npm-module
yaml.nvim
🍒 YAML toolkit for Neovim users
Stars: ✭ 81 (-21.36%)
Mutual labels:  yaml
cryptorious
CLI Password Manager
Stars: ✭ 15 (-85.44%)
Mutual labels:  yaml

Yamlinc

Create a composed YAML file using $include tag.

NPM

Build Status Test Coverage Maintainability

Simple usage

STEP #1 - Install global yamlinc command-line utility

$ npm install -g yamlinc

STEP #2 - Create "my_swagger_doc.yml" and split it into multiple file

## file: my_swagger_doc.yml
version: '2.0'
$include: ./tags.yml
$include: ./paths.yml
## file: tags.yml
tags:
- FirstTag
- SecondTag
## file: paths.yml
paths:
  /api/me:
    get: ...      
  /api/you:
    post: ...
  $include: others-paths.yml
## file: others-paths.yml
/api/other/one:
  get: ...      
/api/other/two:
  post: ...

STEP #3 - Simply compile the entry point 'my_swagger_doc.yml'

$ yamlinc my_swagger_doc.yml

STEP #4 - Get your compiled file 'my_swagger_doc.inc.yml'

NOTICE: Yamlinc appends '*.inc.yml' extension to compiled file.

Development watcher

During development you need constantily updated compiled file by watching changes of dependencies

$ yamlinc --watch spectacle -d my_swagger_doc.yml

This example generates documentation with spectacle

Feed your .inc.yml file

If your application needs a compiled file as parameter you can simply compound and feed

$ yamlinc --exec docker-compose -f docker-compose.yml

Redirect output to another command

If your application needs send output to another command or chaining using pipe follow this example

$ yamlinc --output - input.yml | nc seashells.io 1337

Parse files to find syntax errors

If your application needs stop after a syntax error or missing file inclusion use strict mode

$ yamlinc --strict settings.yml

Use an external schema

If you have your own or a third party schema you can pass it to yamlinc like this

$ yamlinc --schema ../node_modules/cloudformation-schema-js-yaml

Create your scenario

If you have custom scenario with YAML file please place issues on the following page

https://github.com/javanile/yamlinc/issues/new

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].