parse

package
v0.0.0-...-a804c55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = cmder.NewModule("parse").
	SetUsage("Parse RAML file and show API in json format").
	AddFlag(
		&cli.StringFlag{
			Name:        "f",
			Aliases:     []string{"ramlfile"},
			Value:       "api.raml",
			Usage:       "Source RAML file",
			Destination: &ramlFile,
		},
		&cli.BoolFlag{
			Name:        "checkRAMLVersion",
			Usage:       "Check RAML Version",
			Destination: &checkRAMLVersion,
		},
		&cli.BoolFlag{
			Name:        "ignoreUnusedAnnotation",
			Usage:       "Ignore unused annotations",
			Destination: &ignoreUnusedAnnotation,
		},
		&cli.BoolFlag{
			Name:        "ignoreUnusedTrait",
			Usage:       "Ignore unused traits",
			Destination: &ignoreUnusedTrait,
		},
		&cli.BoolFlag{
			Name:        "allowIntegerToBeNumber",
			Usage:       "Allow integer type to be number type when checking",
			Destination: &allowIntegerToBeNumber,
		},
		&cli.BoolFlag{
			Name:        "allowArrayToBeNull",
			Usage:       "Allow array type to be null",
			Destination: &allowArrayToBeNull,
		},
		&cli.BoolFlag{
			Name:        "allowRequiredPropertyToBeEmpty",
			Usage:       "Allow required property to be empty value, but still should be existed",
			Destination: &allowRequiredPropertyToBeEmpty,
		},
	).
	SetAction(action)

Module info

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL