schemaverify

package module
v0.0.0-...-33c70f5 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 6 Imported by: 0

README

schemaverify

JSON schema linter for Go

Install

go get -u github.com/tdakkota/schemaverify/cmd/schemaverify

Usage

schemaverify uses singlechecker package to run:

schemaverify: checks that generated Go structs matches JSON Schema

Usage: schemaverify [-flag] [package]


Flags:
  -V    print version and exit
  -all
        no effect (deprecated)
  -c int
        display offending line with this many lines of context (default -1)
  -cpuprofile string
        write CPU profile to this file
  -debug string
        debug flags, any subset of "fpstv"
  -fix
        apply all suggested fixes
  -flags
        print analyzer flags in JSON
  -json
        emit JSON output
  -memprofile string
        write memory profile to this file
  -report-skipped
        report definition which not found
  -schema-dir string
        path to JSON Schema directory (default "vk-api-schema")
  -source
        no effect (deprecated)
  -tags string
        no effect (deprecated)
  -trace string
        write trace log to this file
  -v    no effect (deprecated)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnalyzer

func NewAnalyzer() *analysis.Analyzer

Types

type SchemaVerify

type SchemaVerify struct {
	SchemaDir     *string
	ReportSkipped *bool
}

func (SchemaVerify) Run

func (s SchemaVerify) Run(pass *analysis.Pass) (interface{}, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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