schema

package
v0.0.0-...-a810c87 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJSONSchema

func GenerateJSONSchema() ([]byte, error)

func GenerateUISchema

func GenerateUISchema() ([]byte, error)

func ValidateResume

func ValidateResume(resume []byte) error

Types

type InvalidResumeError

type InvalidResumeError struct {
	// contains filtered or unexported fields
}

func (*InvalidResumeError) Error

func (e *InvalidResumeError) Error() string

type Schema

type Schema struct {
	Core         coreSchema          `json:"core"`
	Personal     personalSchema      `json:"personal" schema:"description:sensitive informations"`
	Work         []workSchema        `json:"work"`
	Education    []educationSchema   `json:"education"`
	Volunteer    []volunteerSchema   `json:"volunteer"`
	Publications []publicationSchema `json:"publications" schema:"description:list of publications"`
	Legal        []legalSchema       `json:"legal" schema:"description:list of legals"`
	Skills       []skillSchema       `json:"skills" schema:"description:list of professional skill-sets"`
	Awards       []awardSchema       `json:"awards" schema:"description:list of awards have been received"`
	Projects     []projectSchema     `json:"projects" schema:"description:list of career projects"`
	Certificates []certificateSchema `json:"certificate"`
	References   []referenceSchema   `json:"references" schema:"description:list of references"`
	Languages    []languageSchema    `json:"languages" schema:"description:list of languages"`
	Interests    []interestSchema    `json:"interests"`
	Meta         metaSchema          `json:"meta" schema:"description:the schema version and any other tooling configuration"`
}

Schema is the struct which jsonschema, uischema, and example are generated from. This package will use `schema` tags to generate this information. Also, it is important to note the `ui:order` in uischema is generated based on the properties order in the struct.

func GenerateExample

func GenerateExample() (Schema, error)

type UnsupportedKindError

type UnsupportedKindError struct {
	// contains filtered or unexported fields
}

func (*UnsupportedKindError) Error

func (e *UnsupportedKindError) Error() string

Jump to

Keyboard shortcuts

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