diff --git a/Makefile b/Makefile index cef85ae..0698233 100644 --- a/Makefile +++ b/Makefile @@ -123,3 +123,7 @@ export JIRACLOUD=1 prove: chmod -R g-rwx,o-rwx $(GNUPGHOME) OSHT_VERBOSE=1 prove -v + +generate: + cd schemas && ./fetch-schemas.py + grep -h slipscheme jiradata/*.go | grep json | sort | uniq | awk -F\/\/ '{print $$2}' | while read cmd; do $$cmd; done diff --git a/glide.lock b/glide.lock index 488f116..db5d840 100644 --- a/glide.lock +++ b/glide.lock @@ -17,7 +17,7 @@ imports: subpackages: - generic - name: github.com/coryb/figtree - version: 405935ba249b758f31f4ca2132c4fed7702cc622 + version: a2b3fe20e721fd0b946cb5d5c434d667c22b480e - name: github.com/coryb/oreo version: b59de1c7ff7fe9e084278487f69a07cb667de9b3 - name: github.com/fatih/camelcase diff --git a/issue.go b/issue.go index 579e615..57d50f0 100644 --- a/issue.go +++ b/issue.go @@ -236,11 +236,11 @@ func GetIssueCreateMetaProject(ua HttpClient, endpoint string, projectKey string } // https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getCreateIssueMeta -func (j *Jira) GetIssueCreateMetaIssueType(projectKey, issueTypeName string) (*jiradata.CreateMetaIssueType, error) { +func (j *Jira) GetIssueCreateMetaIssueType(projectKey, issueTypeName string) (*jiradata.IssueType, error) { return GetIssueCreateMetaIssueType(j.UA, j.Endpoint, projectKey, issueTypeName) } -func GetIssueCreateMetaIssueType(ua HttpClient, endpoint string, projectKey, issueTypeName string) (*jiradata.CreateMetaIssueType, error) { +func GetIssueCreateMetaIssueType(ua HttpClient, endpoint string, projectKey, issueTypeName string) (*jiradata.IssueType, error) { uri := fmt.Sprintf("%s/rest/api/2/issue/createmeta?projectKeys=%s&issuetypeNames=%s&expand=projects.issuetypes.fields", endpoint, projectKey, issueTypeName) resp, err := ua.GetJSON(uri) if err != nil { @@ -256,7 +256,7 @@ func GetIssueCreateMetaIssueType(ua HttpClient, endpoint string, projectKey, iss } for _, project := range results.Projects { if project.Key == projectKey { - for _, issueType := range project.Issuetypes { + for _, issueType := range project.IssueTypes { if issueType.Name == issueTypeName { return issueType, nil } diff --git a/jiracli/create.go b/jiracli/create.go index ee1a95f..64ac947 100644 --- a/jiracli/create.go +++ b/jiracli/create.go @@ -61,8 +61,8 @@ func CmdCreateUsage(cmd *kingpin.CmdClause, opts *CreateOptions) error { // will parse the edited document as YAML and submit the document to jira. func CmdCreate(o *oreo.Client, opts *CreateOptions) error { type templateInput struct { - Meta *jiradata.CreateMetaIssueType `yaml:"meta" json:"meta"` - Overrides map[string]string `yaml:"overrides" json:"overrides"` + Meta *jiradata.IssueType `yaml:"meta" json:"meta"` + Overrides map[string]string `yaml:"overrides" json:"overrides"` } if err := defaultIssueType(o, opts.Endpoint.Value, &opts.Project, &opts.IssueType); err != nil { @@ -113,7 +113,7 @@ func defaultIssueType(o *oreo.Client, endpoint string, project, issuetype *strin issueTypes := map[string]bool{} - for _, issuetype := range projectMeta.Issuetypes { + for _, issuetype := range projectMeta.IssueTypes { issueTypes[issuetype.Name] = true } diff --git a/jiracli/subtask.go b/jiracli/subtask.go index 121e72c..5daa8fd 100644 --- a/jiracli/subtask.go +++ b/jiracli/subtask.go @@ -63,9 +63,9 @@ func CmdSubtaskUsage(cmd *kingpin.CmdClause, opts *SubtaskOptions) error { // will parse the edited document as YAML and submit the document to jira. func CmdSubtask(o *oreo.Client, opts *SubtaskOptions) error { type templateInput struct { - Meta *jiradata.CreateMetaIssueType `yaml:"meta" json:"meta"` - Overrides map[string]string `yaml:"overrides" json:"overrides"` - Parent *jiradata.Issue `yaml:"parent" json:"parent"` + Meta *jiradata.IssueType `yaml:"meta" json:"meta"` + Overrides map[string]string `yaml:"overrides" json:"overrides"` + Parent *jiradata.Issue `yaml:"parent" json:"parent"` } parent, err := jira.GetIssue(o, opts.Endpoint.Value, opts.Issue, nil) diff --git a/jiradata/AllowedValues.go b/jiradata/AllowedValues.go index e824716..982f171 100644 --- a/jiradata/AllowedValues.go +++ b/jiradata/AllowedValues.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/TransitionsMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/AuthParams.go b/jiradata/AuthParams.go index 7aeb8a7..8fafc7a 100644 --- a/jiradata/AuthParams.go +++ b/jiradata/AuthParams.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/AuthParams.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/AuthParams.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/AuthSuccess.go b/jiradata/AuthSuccess.go index 417b82a..89aebd1 100644 --- a/jiradata/AuthSuccess.go +++ b/jiradata/AuthSuccess.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/AuthSuccess.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/AuthSuccess.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/ChangeHistory.go b/jiradata/ChangeHistory.go index 47a72c2..76f1e12 100644 --- a/jiradata/ChangeHistory.go +++ b/jiradata/ChangeHistory.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/ChangeItem.go b/jiradata/ChangeItem.go index a39d268..631328c 100644 --- a/jiradata/ChangeItem.go +++ b/jiradata/ChangeItem.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// @@ -48,7 +48,7 @@ package jiradata type ChangeItem struct { Field string `json:"field,omitempty" yaml:"field,omitempty"` FieldID string `json:"fieldId,omitempty" yaml:"fieldId,omitempty"` - Fieldtype string `json:"fieldtype,omitempty" yaml:"fieldtype,omitempty"` + FieldType string `json:"fieldtype,omitempty" yaml:"fieldtype,omitempty"` From string `json:"from,omitempty" yaml:"from,omitempty"` FromString string `json:"fromString,omitempty" yaml:"fromString,omitempty"` To string `json:"to,omitempty" yaml:"to,omitempty"` diff --git a/jiradata/Changelog.go b/jiradata/Changelog.go index 3df07c9..08005ad 100644 --- a/jiradata/Changelog.go +++ b/jiradata/Changelog.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/ClauseNames.go b/jiradata/ClauseNames.go index 57b2e3d..a10edaf 100644 --- a/jiradata/ClauseNames.go +++ b/jiradata/ClauseNames.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/Field.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Field.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Comment.go b/jiradata/Comment.go index c9c0dcd..d7e7d19 100644 --- a/jiradata/Comment.go +++ b/jiradata/Comment.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/LinkIssueRequest.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/LinkIssueRequest.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Component.go b/jiradata/Component.go index 0db6d04..07b30f8 100644 --- a/jiradata/Component.go +++ b/jiradata/Component.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/Project.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Components.go b/jiradata/Components.go index 085520c..7d5c6c1 100644 --- a/jiradata/Components.go +++ b/jiradata/Components.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/Project.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/CreateMeta.go b/jiradata/CreateMeta.go index 6592753..b74f2cd 100644 --- a/jiradata/CreateMeta.go +++ b/jiradata/CreateMeta.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/CreateMeta.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/CreateMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/CreateMetaIssueType.go b/jiradata/CreateMetaIssueType.go index a916f82..3f97643 100644 --- a/jiradata/CreateMetaIssueType.go +++ b/jiradata/CreateMetaIssueType.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/CreateMeta.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/CreateMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/CreateMetaProject.go b/jiradata/CreateMetaProject.go index ef4acd6..4ebb70b 100644 --- a/jiradata/CreateMetaProject.go +++ b/jiradata/CreateMetaProject.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/CreateMeta.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/CreateMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// @@ -165,7 +165,7 @@ type CreateMetaProject struct { AvatarUrls map[string]string `json:"avatarUrls,omitempty" yaml:"avatarUrls,omitempty"` Expand string `json:"expand,omitempty" yaml:"expand,omitempty"` ID string `json:"id,omitempty" yaml:"id,omitempty"` - Issuetypes Issuetypes `json:"issuetypes,omitempty" yaml:"issuetypes,omitempty"` + IssueTypes IssueTypes `json:"issuetypes,omitempty" yaml:"issuetypes,omitempty"` Key string `json:"key,omitempty" yaml:"key,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Self string `json:"self,omitempty" yaml:"self,omitempty"` diff --git a/jiradata/CurrentUser.go b/jiradata/CurrentUser.go index cdef218..c4b759e 100644 --- a/jiradata/CurrentUser.go +++ b/jiradata/CurrentUser.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/CurrentUser.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/CurrentUser.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/EditMeta.go b/jiradata/EditMeta.go index 7aba39d..1060d52 100644 --- a/jiradata/EditMeta.go +++ b/jiradata/EditMeta.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/EntityProperty.go b/jiradata/EntityProperty.go index c88965e..d72cc90 100644 --- a/jiradata/EntityProperty.go +++ b/jiradata/EntityProperty.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/WorklogWithPagination.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/ErrorCollection.go b/jiradata/ErrorCollection.go index 0d3e187..c3efc81 100644 --- a/jiradata/ErrorCollection.go +++ b/jiradata/ErrorCollection.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/ErrorCollection.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/ErrorCollection.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/ErrorCollectionFuncs.go b/jiradata/ErrorCollectionFuncs.go index e45d730..d47fa72 100644 --- a/jiradata/ErrorCollectionFuncs.go +++ b/jiradata/ErrorCollectionFuncs.go @@ -1,8 +1,6 @@ package jiradata -import ( - "strings" -) +import "strings" // Error is needed to make ErrorCollection implement the error interface func (e ErrorCollection) Error() string { diff --git a/jiradata/ErrorMessages.go b/jiradata/ErrorMessages.go index ee33c47..ab462c9 100644 --- a/jiradata/ErrorMessages.go +++ b/jiradata/ErrorMessages.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/ErrorCollection.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/ErrorCollection.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Field.go b/jiradata/Field.go index c973e10..eae474e 100644 --- a/jiradata/Field.go +++ b/jiradata/Field.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/Field.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Field.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/FieldMeta.go b/jiradata/FieldMeta.go index bb33feb..d1a44ec 100644 --- a/jiradata/FieldMeta.go +++ b/jiradata/FieldMeta.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/TransitionsMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/FieldMetaMap.go b/jiradata/FieldMetaMap.go index 70b0ca6..482d7ac 100644 --- a/jiradata/FieldMetaMap.go +++ b/jiradata/FieldMetaMap.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/TransitionsMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/FieldOperation.go b/jiradata/FieldOperation.go index afe9afa..78a0ddd 100644 --- a/jiradata/FieldOperation.go +++ b/jiradata/FieldOperation.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/IssueUpdate.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/FieldOperations.go b/jiradata/FieldOperations.go index 8ad195e..2dd0187 100644 --- a/jiradata/FieldOperations.go +++ b/jiradata/FieldOperations.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/IssueUpdate.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/FieldOperationsMap.go b/jiradata/FieldOperationsMap.go index 7b75815..62253ed 100644 --- a/jiradata/FieldOperationsMap.go +++ b/jiradata/FieldOperationsMap.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/IssueUpdate.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Fields.go b/jiradata/Fields.go index 1d5a81a..5c3d04c 100644 --- a/jiradata/Fields.go +++ b/jiradata/Fields.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchRequest.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchRequest.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Histories.go b/jiradata/Histories.go index 7f6a07b..4d16ece 100644 --- a/jiradata/Histories.go +++ b/jiradata/Histories.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/HistoryMetadata.go b/jiradata/HistoryMetadata.go index 28085bc..928bd6a 100644 --- a/jiradata/HistoryMetadata.go +++ b/jiradata/HistoryMetadata.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/HistoryMetadataParticipant.go b/jiradata/HistoryMetadataParticipant.go index b49b1fb..39f7bda 100644 --- a/jiradata/HistoryMetadataParticipant.go +++ b/jiradata/HistoryMetadataParticipant.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/IncludedFields.go b/jiradata/IncludedFields.go index ee0cf61..19834d6 100644 --- a/jiradata/IncludedFields.go +++ b/jiradata/IncludedFields.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// @@ -15,4 +15,4 @@ package jiradata // "title": "Included Fields", // "type": "object" // } -type IncludedFields map[string]string +type IncludedFields map[string]interface{} diff --git a/jiradata/Issue.go b/jiradata/Issue.go index 581a778..975089c 100644 --- a/jiradata/Issue.go +++ b/jiradata/Issue.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/IssueCreateResponse.go b/jiradata/IssueCreateResponse.go index be706de..22eb7e7 100644 --- a/jiradata/IssueCreateResponse.go +++ b/jiradata/IssueCreateResponse.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/IssueCreateResponse.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/IssueCreateResponse.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/IssueLinkType.go b/jiradata/IssueLinkType.go index 075afb0..fed542c 100644 --- a/jiradata/IssueLinkType.go +++ b/jiradata/IssueLinkType.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/LinkIssueRequest.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/LinkIssueRequest.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/IssueLinkTypes.go b/jiradata/IssueLinkTypes.go index f023186..e5a1c13 100644 --- a/jiradata/IssueLinkTypes.go +++ b/jiradata/IssueLinkTypes.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/IssueLinkTypes.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/IssueLinkTypes.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/IssueRef.go b/jiradata/IssueRef.go index acce50b..37fd684 100644 --- a/jiradata/IssueRef.go +++ b/jiradata/IssueRef.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/LinkIssueRequest.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/LinkIssueRequest.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/IssueType.go b/jiradata/IssueType.go index bcad447..d648e3e 100644 --- a/jiradata/IssueType.go +++ b/jiradata/IssueType.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/Project.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/IssueUpdate.go b/jiradata/IssueUpdate.go index 980203a..bdcb309 100644 --- a/jiradata/IssueUpdate.go +++ b/jiradata/IssueUpdate.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/IssueUpdate.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Issues.go b/jiradata/Issues.go index 3b1e032..fd17e2e 100644 --- a/jiradata/Issues.go +++ b/jiradata/Issues.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Issuetypes.go b/jiradata/Issuetypes.go index 4ac2e1a..883e001 100644 --- a/jiradata/Issuetypes.go +++ b/jiradata/Issuetypes.go @@ -5,17 +5,17 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/CreateMeta.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// -// Issuetypes defined from schema: +// IssueTypes defined from schema: // { -// "title": "issuetypes", +// "title": "issueTypes", // "type": "array", // "items": { -// "title": "Create Meta Issue Type", +// "title": "Issue Type", // "type": "object", // "properties": { // "avatarId": { @@ -26,83 +26,6 @@ package jiradata // "title": "description", // "type": "string" // }, -// "expand": { -// "title": "expand", -// "type": "string" -// }, -// "fields": { -// "title": "fields", -// "type": "object", -// "patternProperties": { -// ".+": { -// "title": "Field Meta", -// "type": "object", -// "properties": { -// "allowedValues": { -// "title": "allowedValues", -// "type": "array", -// "items": {} -// }, -// "autoCompleteUrl": { -// "title": "autoCompleteUrl", -// "type": "string" -// }, -// "defaultValue": { -// "title": "defaultValue" -// }, -// "hasDefaultValue": { -// "title": "hasDefaultValue", -// "type": "boolean" -// }, -// "key": { -// "title": "key", -// "type": "string" -// }, -// "name": { -// "title": "name", -// "type": "string" -// }, -// "operations": { -// "title": "operations", -// "type": "array", -// "items": { -// "type": "string" -// } -// }, -// "required": { -// "title": "required", -// "type": "boolean" -// }, -// "schema": { -// "title": "Json Type", -// "type": "object", -// "properties": { -// "custom": { -// "title": "custom", -// "type": "string" -// }, -// "customId": { -// "title": "customId", -// "type": "integer" -// }, -// "items": { -// "title": "items", -// "type": "string" -// }, -// "system": { -// "title": "system", -// "type": "string" -// }, -// "type": { -// "title": "type", -// "type": "string" -// } -// } -// } -// } -// } -// } -// }, // "iconUrl": { // "title": "iconUrl", // "type": "string" @@ -126,4 +49,4 @@ package jiradata // } // } // } -type Issuetypes []*CreateMetaIssueType +type IssueTypes []*IssueType diff --git a/jiradata/Items.go b/jiradata/Items.go index e26c8f4..3edc138 100644 --- a/jiradata/Items.go +++ b/jiradata/Items.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/JSONTypeMap.go b/jiradata/JSONTypeMap.go index 06b8fee..496c847 100644 --- a/jiradata/JSONTypeMap.go +++ b/jiradata/JSONTypeMap.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/JsonType.go b/jiradata/JsonType.go index 83cb1a5..5969597 100644 --- a/jiradata/JsonType.go +++ b/jiradata/JsonType.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/TransitionsMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/LinkGroup.go b/jiradata/LinkGroup.go index dec27c0..744bd1c 100644 --- a/jiradata/LinkGroup.go +++ b/jiradata/LinkGroup.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/LinkGroups.go b/jiradata/LinkGroups.go index 97fc719..78963d9 100644 --- a/jiradata/LinkGroups.go +++ b/jiradata/LinkGroups.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/LinkIssueRequest.go b/jiradata/LinkIssueRequest.go index b4e7b18..4967302 100644 --- a/jiradata/LinkIssueRequest.go +++ b/jiradata/LinkIssueRequest.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/LinkIssueRequest.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/LinkIssueRequest.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/LoginInfo.go b/jiradata/LoginInfo.go index 6089b5b..94f602c 100644 --- a/jiradata/LoginInfo.go +++ b/jiradata/LoginInfo.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/CurrentUser.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/CurrentUser.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Operations.go b/jiradata/Operations.go index 6ff150d..efd11ef 100644 --- a/jiradata/Operations.go +++ b/jiradata/Operations.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/TransitionsMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Opsbar.go b/jiradata/Opsbar.go index f7cc081..14643c4 100644 --- a/jiradata/Opsbar.go +++ b/jiradata/Opsbar.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Priority.go b/jiradata/Priority.go index 83859ba..8090d6d 100644 --- a/jiradata/Priority.go +++ b/jiradata/Priority.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/LinkIssueRequest.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/LinkIssueRequest.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Project.go b/jiradata/Project.go new file mode 100644 index 0000000..a4b0941 --- /dev/null +++ b/jiradata/Project.go @@ -0,0 +1,615 @@ +package jiradata + +///////////////////////////////////////////////////////////////////////// +// This Code is Generated by SlipScheme Project: +// https://github.com/coryb/slipscheme +// +// Generated with command: +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json +///////////////////////////////////////////////////////////////////////// +// DO NOT EDIT // +///////////////////////////////////////////////////////////////////////// + +// Project defined from schema: +// { +// "title": "Project", +// "id": "https://docs.atlassian.com/jira/REST/schema/project#", +// "type": "object", +// "definitions": { +// "simple-list-wrapper": { +// "title": "Simple List Wrapper", +// "type": "object", +// "properties": { +// "items": { +// "type": "array", +// "items": { +// "title": "Group", +// "type": "object", +// "properties": { +// "name": { +// "type": "string" +// }, +// "self": { +// "type": "string" +// } +// } +// } +// }, +// "max-results": { +// "type": "integer" +// }, +// "size": { +// "type": "integer" +// } +// } +// }, +// "user": { +// "title": "User", +// "type": "object", +// "properties": { +// "accountId": { +// "type": "string" +// }, +// "active": { +// "type": "boolean" +// }, +// "applicationRoles": { +// "$ref": "#/definitions/simple-list-wrapper" +// }, +// "avatarUrls": { +// "type": "object", +// "patternProperties": { +// ".+": { +// "type": "string" +// } +// } +// }, +// "displayName": { +// "type": "string" +// }, +// "emailAddress": { +// "type": "string" +// }, +// "expand": { +// "type": "string" +// }, +// "groups": { +// "$ref": "#/definitions/simple-list-wrapper" +// }, +// "key": { +// "type": "string" +// }, +// "locale": { +// "type": "string" +// }, +// "name": { +// "type": "string" +// }, +// "self": { +// "type": "string" +// }, +// "timeZone": { +// "type": "string" +// } +// } +// } +// }, +// "properties": { +// "assigneeType": { +// "title": "assigneeType", +// "type": "string" +// }, +// "avatarUrls": { +// "title": "avatarUrls", +// "type": "object", +// "patternProperties": { +// ".+": { +// "type": "string" +// } +// } +// }, +// "components": { +// "title": "components", +// "type": "array", +// "items": { +// "title": "Component", +// "type": "object", +// "properties": { +// "assignee": { +// "title": "User", +// "type": "object", +// "properties": { +// "accountId": { +// "type": "string" +// }, +// "active": { +// "type": "boolean" +// }, +// "applicationRoles": { +// "$ref": "#/definitions/simple-list-wrapper" +// }, +// "avatarUrls": { +// "type": "object", +// "patternProperties": { +// ".+": { +// "type": "string" +// } +// } +// }, +// "displayName": { +// "type": "string" +// }, +// "emailAddress": { +// "type": "string" +// }, +// "expand": { +// "type": "string" +// }, +// "groups": { +// "$ref": "#/definitions/simple-list-wrapper" +// }, +// "key": { +// "type": "string" +// }, +// "locale": { +// "type": "string" +// }, +// "name": { +// "type": "string" +// }, +// "self": { +// "type": "string" +// }, +// "timeZone": { +// "type": "string" +// } +// } +// }, +// "assigneeType": { +// "title": "assigneeType", +// "type": "string" +// }, +// "description": { +// "title": "description", +// "type": "string" +// }, +// "id": { +// "title": "id", +// "type": "string" +// }, +// "isAssigneeTypeValid": { +// "title": "isAssigneeTypeValid", +// "type": "boolean" +// }, +// "lead": { +// "title": "User", +// "type": "object", +// "properties": { +// "accountId": { +// "type": "string" +// }, +// "active": { +// "type": "boolean" +// }, +// "applicationRoles": { +// "$ref": "#/definitions/simple-list-wrapper" +// }, +// "avatarUrls": { +// "type": "object", +// "patternProperties": { +// ".+": { +// "type": "string" +// } +// } +// }, +// "displayName": { +// "type": "string" +// }, +// "emailAddress": { +// "type": "string" +// }, +// "expand": { +// "type": "string" +// }, +// "groups": { +// "$ref": "#/definitions/simple-list-wrapper" +// }, +// "key": { +// "type": "string" +// }, +// "locale": { +// "type": "string" +// }, +// "name": { +// "type": "string" +// }, +// "self": { +// "type": "string" +// }, +// "timeZone": { +// "type": "string" +// } +// } +// }, +// "leadUserName": { +// "title": "leadUserName", +// "type": "string" +// }, +// "name": { +// "title": "name", +// "type": "string" +// }, +// "project": { +// "title": "project", +// "type": "string" +// }, +// "projectId": { +// "title": "projectId", +// "type": "integer" +// }, +// "realAssignee": { +// "title": "User", +// "type": "object", +// "properties": { +// "accountId": { +// "type": "string" +// }, +// "active": { +// "type": "boolean" +// }, +// "applicationRoles": { +// "$ref": "#/definitions/simple-list-wrapper" +// }, +// "avatarUrls": { +// "type": "object", +// "patternProperties": { +// ".+": { +// "type": "string" +// } +// } +// }, +// "displayName": { +// "type": "string" +// }, +// "emailAddress": { +// "type": "string" +// }, +// "expand": { +// "type": "string" +// }, +// "groups": { +// "$ref": "#/definitions/simple-list-wrapper" +// }, +// "key": { +// "type": "string" +// }, +// "locale": { +// "type": "string" +// }, +// "name": { +// "type": "string" +// }, +// "self": { +// "type": "string" +// }, +// "timeZone": { +// "type": "string" +// } +// } +// }, +// "realAssigneeType": { +// "title": "realAssigneeType", +// "type": "string" +// }, +// "self": { +// "title": "self", +// "type": "string" +// } +// } +// } +// }, +// "description": { +// "title": "description", +// "type": "string" +// }, +// "email": { +// "title": "email", +// "type": "string" +// }, +// "expand": { +// "title": "expand", +// "type": "string" +// }, +// "id": { +// "title": "id", +// "type": "string" +// }, +// "issueTypes": { +// "title": "issueTypes", +// "type": "array", +// "items": { +// "title": "Issue Type", +// "type": "object", +// "properties": { +// "avatarId": { +// "title": "avatarId", +// "type": "integer" +// }, +// "description": { +// "title": "description", +// "type": "string" +// }, +// "iconUrl": { +// "title": "iconUrl", +// "type": "string" +// }, +// "id": { +// "title": "id", +// "type": "string" +// }, +// "name": { +// "title": "name", +// "type": "string" +// }, +// "self": { +// "title": "self", +// "type": "string" +// }, +// "subtask": { +// "title": "subtask", +// "type": "boolean" +// } +// } +// } +// }, +// "key": { +// "title": "key", +// "type": "string" +// }, +// "lead": { +// "title": "User", +// "type": "object", +// "properties": { +// "accountId": { +// "type": "string" +// }, +// "active": { +// "type": "boolean" +// }, +// "applicationRoles": { +// "$ref": "#/definitions/simple-list-wrapper" +// }, +// "avatarUrls": { +// "type": "object", +// "patternProperties": { +// ".+": { +// "type": "string" +// } +// } +// }, +// "displayName": { +// "type": "string" +// }, +// "emailAddress": { +// "type": "string" +// }, +// "expand": { +// "type": "string" +// }, +// "groups": { +// "$ref": "#/definitions/simple-list-wrapper" +// }, +// "key": { +// "type": "string" +// }, +// "locale": { +// "type": "string" +// }, +// "name": { +// "type": "string" +// }, +// "self": { +// "type": "string" +// }, +// "timeZone": { +// "type": "string" +// } +// } +// }, +// "name": { +// "title": "name", +// "type": "string" +// }, +// "projectCategory": { +// "title": "Project Category", +// "type": "object", +// "properties": { +// "description": { +// "title": "description", +// "type": "string" +// }, +// "id": { +// "title": "id", +// "type": "string" +// }, +// "name": { +// "title": "name", +// "type": "string" +// }, +// "self": { +// "title": "self", +// "type": "string" +// } +// } +// }, +// "projectKeys": { +// "title": "projectKeys", +// "type": "array", +// "items": { +// "type": "string" +// } +// }, +// "projectTypeKey": { +// "title": "projectTypeKey", +// "type": "string" +// }, +// "roles": { +// "title": "roles", +// "type": "object", +// "patternProperties": { +// ".+": { +// "type": "string" +// } +// } +// }, +// "self": { +// "title": "self", +// "type": "string" +// }, +// "url": { +// "title": "url", +// "type": "string" +// }, +// "versions": { +// "title": "versions", +// "type": "array", +// "items": { +// "title": "Version", +// "type": "object", +// "properties": { +// "archived": { +// "title": "archived", +// "type": "boolean" +// }, +// "description": { +// "title": "description", +// "type": "string" +// }, +// "expand": { +// "title": "expand", +// "type": "string" +// }, +// "id": { +// "title": "id", +// "type": "string" +// }, +// "moveUnfixedIssuesTo": { +// "title": "moveUnfixedIssuesTo", +// "type": "string" +// }, +// "name": { +// "title": "name", +// "type": "string" +// }, +// "operations": { +// "title": "operations", +// "type": "array", +// "items": { +// "title": "Simple Link", +// "type": "object", +// "properties": { +// "href": { +// "title": "href", +// "type": "string" +// }, +// "iconClass": { +// "title": "iconClass", +// "type": "string" +// }, +// "id": { +// "title": "id", +// "type": "string" +// }, +// "label": { +// "title": "label", +// "type": "string" +// }, +// "styleClass": { +// "title": "styleClass", +// "type": "string" +// }, +// "title": { +// "title": "title", +// "type": "string" +// }, +// "weight": { +// "title": "weight", +// "type": "integer" +// } +// } +// } +// }, +// "overdue": { +// "title": "overdue", +// "type": "boolean" +// }, +// "project": { +// "title": "project", +// "type": "string" +// }, +// "projectId": { +// "title": "projectId", +// "type": "integer" +// }, +// "released": { +// "title": "released", +// "type": "boolean" +// }, +// "remotelinks": { +// "title": "remotelinks", +// "type": "array", +// "items": { +// "title": "Remote Entity Link", +// "type": "object", +// "properties": { +// "link": { +// "title": "link" +// }, +// "name": { +// "title": "name", +// "type": "string" +// }, +// "self": { +// "title": "self", +// "type": "string" +// } +// } +// } +// }, +// "self": { +// "title": "self", +// "type": "string" +// }, +// "userReleaseDate": { +// "title": "userReleaseDate", +// "type": "string" +// }, +// "userStartDate": { +// "title": "userStartDate", +// "type": "string" +// } +// } +// } +// } +// } +// } +type Project struct { + AssigneeType string `json:"assigneeType,omitempty" yaml:"assigneeType,omitempty"` + AvatarUrls map[string]string `json:"avatarUrls,omitempty" yaml:"avatarUrls,omitempty"` + Components Components `json:"components,omitempty" yaml:"components,omitempty"` + Description string `json:"description,omitempty" yaml:"description,omitempty"` + Email string `json:"email,omitempty" yaml:"email,omitempty"` + Expand string `json:"expand,omitempty" yaml:"expand,omitempty"` + ID string `json:"id,omitempty" yaml:"id,omitempty"` + IssueTypes IssueTypes `json:"issueTypes,omitempty" yaml:"issueTypes,omitempty"` + Key string `json:"key,omitempty" yaml:"key,omitempty"` + Lead *User `json:"lead,omitempty" yaml:"lead,omitempty"` + Name string `json:"name,omitempty" yaml:"name,omitempty"` + ProjectCategory *ProjectCategory `json:"projectCategory,omitempty" yaml:"projectCategory,omitempty"` + ProjectKeys ProjectKeys `json:"projectKeys,omitempty" yaml:"projectKeys,omitempty"` + ProjectTypeKey string `json:"projectTypeKey,omitempty" yaml:"projectTypeKey,omitempty"` + Roles map[string]string `json:"roles,omitempty" yaml:"roles,omitempty"` + Self string `json:"self,omitempty" yaml:"self,omitempty"` + URL string `json:"url,omitempty" yaml:"url,omitempty"` + Versions Versions `json:"versions,omitempty" yaml:"versions,omitempty"` +} diff --git a/jiradata/ProjectCategory.go b/jiradata/ProjectCategory.go index 1f75a1b..c068d50 100644 --- a/jiradata/ProjectCategory.go +++ b/jiradata/ProjectCategory.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/Project.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/ProjectKeys.go b/jiradata/ProjectKeys.go index 852349d..37f40b6 100644 --- a/jiradata/ProjectKeys.go +++ b/jiradata/ProjectKeys.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/Project.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Projects.go b/jiradata/Projects.go index bd8e1d7..4fd4307 100644 --- a/jiradata/Projects.go +++ b/jiradata/Projects.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/CreateMeta.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/CreateMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Properties.go b/jiradata/Properties.go index 34d1757..4efc313 100644 --- a/jiradata/Properties.go +++ b/jiradata/Properties.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/WorklogWithPagination.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/RemoteEntityLink.go b/jiradata/RemoteEntityLink.go index f848675..1dc7478 100644 --- a/jiradata/RemoteEntityLink.go +++ b/jiradata/RemoteEntityLink.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/Project.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Remotelinks.go b/jiradata/Remotelinks.go index b45cc30..89004d4 100644 --- a/jiradata/Remotelinks.go +++ b/jiradata/Remotelinks.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/Project.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/SearchRequest.go b/jiradata/SearchRequest.go index 46cfdf0..6eeda78 100644 --- a/jiradata/SearchRequest.go +++ b/jiradata/SearchRequest.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchRequest.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchRequest.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/SearchResults.go b/jiradata/SearchResults.go index fb865ed..ace2213 100644 --- a/jiradata/SearchResults.go +++ b/jiradata/SearchResults.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/SessionInfo.go b/jiradata/SessionInfo.go index 07903ca..96773c3 100644 --- a/jiradata/SessionInfo.go +++ b/jiradata/SessionInfo.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/AuthSuccess.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/AuthSuccess.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/SimpleLink.go b/jiradata/SimpleLink.go index a97861a..669125b 100644 --- a/jiradata/SimpleLink.go +++ b/jiradata/SimpleLink.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/Project.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Status.go b/jiradata/Status.go index f194801..d28a2cc 100644 --- a/jiradata/Status.go +++ b/jiradata/Status.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/TransitionsMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// @@ -31,6 +31,10 @@ package jiradata // "title": "name", // "type": "string" // }, +// "self": { +// "title": "self", +// "type": "string" +// }, // "statusCategory": { // "title": "Status Category", // "type": "object", @@ -50,6 +54,10 @@ package jiradata // "name": { // "title": "name", // "type": "string" +// }, +// "self": { +// "title": "self", +// "type": "string" // } // } // }, @@ -64,6 +72,7 @@ type Status struct { IconURL string `json:"iconUrl,omitempty" yaml:"iconUrl,omitempty"` ID string `json:"id,omitempty" yaml:"id,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` + Self string `json:"self,omitempty" yaml:"self,omitempty"` StatusCategory *StatusCategory `json:"statusCategory,omitempty" yaml:"statusCategory,omitempty"` StatusColor string `json:"statusColor,omitempty" yaml:"statusColor,omitempty"` } diff --git a/jiradata/StatusCategory.go b/jiradata/StatusCategory.go index cedebc0..44e1619 100644 --- a/jiradata/StatusCategory.go +++ b/jiradata/StatusCategory.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/TransitionsMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// @@ -30,6 +30,10 @@ package jiradata // "name": { // "title": "name", // "type": "string" +// }, +// "self": { +// "title": "self", +// "type": "string" // } // } // } @@ -38,4 +42,5 @@ type StatusCategory struct { ID int `json:"id,omitempty" yaml:"id,omitempty"` Key string `json:"key,omitempty" yaml:"key,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` + Self string `json:"self,omitempty" yaml:"self,omitempty"` } diff --git a/jiradata/Transition.go b/jiradata/Transition.go index 6f6f228..dbcc825 100644 --- a/jiradata/Transition.go +++ b/jiradata/Transition.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir jiradata -overwrite schemas/IssueUpdate.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/TransitionsMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// @@ -15,6 +15,10 @@ package jiradata // "title": "Transition", // "type": "object", // "properties": { +// "expand": { +// "title": "expand", +// "type": "string" +// }, // "fields": { // "title": "fields", // "type": "object", @@ -120,6 +124,10 @@ package jiradata // "title": "name", // "type": "string" // }, +// "self": { +// "title": "self", +// "type": "string" +// }, // "statusCategory": { // "title": "Status Category", // "type": "object", @@ -139,6 +147,10 @@ package jiradata // "name": { // "title": "name", // "type": "string" +// }, +// "self": { +// "title": "self", +// "type": "string" // } // } // }, @@ -151,6 +163,7 @@ package jiradata // } // } type Transition struct { + Expand string `json:"expand,omitempty" yaml:"expand,omitempty"` Fields FieldMetaMap `json:"fields,omitempty" yaml:"fields,omitempty"` HasScreen bool `json:"hasScreen,omitempty" yaml:"hasScreen,omitempty"` ID string `json:"id,omitempty" yaml:"id,omitempty"` diff --git a/jiradata/Transitions.go b/jiradata/Transitions.go index 88745e9..72b48d8 100644 --- a/jiradata/Transitions.go +++ b/jiradata/Transitions.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/TransitionsMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// @@ -31,33 +31,65 @@ package jiradata // "type": "object", // "properties": { // "allowedValues": { +// "title": "allowedValues", // "type": "array", // "items": {} // }, // "autoCompleteUrl": { +// "title": "autoCompleteUrl", // "type": "string" // }, -// "defaultValue": {}, +// "defaultValue": { +// "title": "defaultValue" +// }, // "hasDefaultValue": { +// "title": "hasDefaultValue", // "type": "boolean" // }, // "key": { +// "title": "key", // "type": "string" // }, // "name": { +// "title": "name", // "type": "string" // }, // "operations": { +// "title": "operations", // "type": "array", // "items": { // "type": "string" // } // }, // "required": { +// "title": "required", // "type": "boolean" // }, // "schema": { -// "$ref": "#/definitions/json-type" +// "title": "Json Type", +// "type": "object", +// "properties": { +// "custom": { +// "title": "custom", +// "type": "string" +// }, +// "customId": { +// "title": "customId", +// "type": "integer" +// }, +// "items": { +// "title": "items", +// "type": "string" +// }, +// "system": { +// "title": "system", +// "type": "string" +// }, +// "type": { +// "title": "type", +// "type": "string" +// } +// } // } // } // } diff --git a/jiradata/TransitionsMeta.go b/jiradata/TransitionsMeta.go index 80e8454..a446fbf 100644 --- a/jiradata/TransitionsMeta.go +++ b/jiradata/TransitionsMeta.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -overwrite ../schemas/TransitionsMeta.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/TransitionsMeta.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// @@ -48,6 +48,9 @@ package jiradata // "title": "autoCompleteUrl", // "type": "string" // }, +// "defaultValue": { +// "title": "defaultValue" +// }, // "hasDefaultValue": { // "title": "hasDefaultValue", // "type": "boolean" diff --git a/jiradata/User.go b/jiradata/User.go index 9e94f65..b86c129 100644 --- a/jiradata/User.go +++ b/jiradata/User.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/WorklogWithPagination.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// @@ -16,15 +16,12 @@ package jiradata // "type": "object", // "properties": { // "accountId": { -// "title": "accountId", // "type": "string" // }, // "active": { -// "title": "active", // "type": "boolean" // }, // "avatarUrls": { -// "title": "avatarUrls", // "type": "object", // "patternProperties": { // ".+": { @@ -33,27 +30,21 @@ package jiradata // } // }, // "displayName": { -// "title": "displayName", // "type": "string" // }, // "emailAddress": { -// "title": "emailAddress", // "type": "string" // }, // "key": { -// "title": "key", // "type": "string" // }, // "name": { -// "title": "name", // "type": "string" // }, // "self": { -// "title": "self", // "type": "string" // }, // "timeZone": { -// "title": "timeZone", // "type": "string" // } // } diff --git a/jiradata/Version.go b/jiradata/Version.go index bc2f9ba..56889a0 100644 --- a/jiradata/Version.go +++ b/jiradata/Version.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/Project.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Versions.go b/jiradata/Versions.go index b027512..0f331fe 100644 --- a/jiradata/Versions.go +++ b/jiradata/Versions.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir jiradata -pkg jiradata schemas/Project.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/Project.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Visibility.go b/jiradata/Visibility.go index 70462bc..7b2e5ae 100644 --- a/jiradata/Visibility.go +++ b/jiradata/Visibility.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/WorklogWithPagination.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/WorklogWithPagination.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/WarningMessages.go b/jiradata/WarningMessages.go index 157c1ee..4bc5e0a 100644 --- a/jiradata/WarningMessages.go +++ b/jiradata/WarningMessages.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -dir data -pkg jiradata -overwrite schemas/SearchResults.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/SearchResults.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Worklog.go b/jiradata/Worklog.go index 580acfb..404229a 100644 --- a/jiradata/Worklog.go +++ b/jiradata/Worklog.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/WorklogWithPagination.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/WorklogWithPagination.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/WorklogWithPagination.go b/jiradata/WorklogWithPagination.go index 7c0c38e..240619e 100644 --- a/jiradata/WorklogWithPagination.go +++ b/jiradata/WorklogWithPagination.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/WorklogWithPagination.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/WorklogWithPagination.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/jiradata/Worklogs.go b/jiradata/Worklogs.go index 13c9091..bf3a13f 100644 --- a/jiradata/Worklogs.go +++ b/jiradata/Worklogs.go @@ -5,7 +5,7 @@ package jiradata // https://github.com/coryb/slipscheme // // Generated with command: -// slipscheme -pkg jiradata -dir data schemas/WorklogWithPagination.json +// slipscheme -dir jiradata -pkg jiradata -overwrite schemas/WorklogWithPagination.json ///////////////////////////////////////////////////////////////////////// // DO NOT EDIT // ///////////////////////////////////////////////////////////////////////// diff --git a/vendor/github.com/coryb/figtree/gen-rawoption.go b/vendor/github.com/coryb/figtree/gen-rawoption.go index 15dd3b9..1c1d17f 100644 --- a/vendor/github.com/coryb/figtree/gen-rawoption.go +++ b/vendor/github.com/coryb/figtree/gen-rawoption.go @@ -216,6 +216,14 @@ func (o ListBoolOption) String() string { return fmt.Sprintf("%v", []BoolOption(o)) } +func (o ListBoolOption) Append(values ...bool) ListBoolOption { + results := o + for _, val := range values { + results = append(results, NewBoolOption(val)) + } + return results +} + func (o ListBoolOption) Slice() []bool { tmp := []bool{} for _, elem := range o { @@ -439,6 +447,14 @@ func (o ListByteOption) String() string { return fmt.Sprintf("%v", []ByteOption(o)) } +func (o ListByteOption) Append(values ...byte) ListByteOption { + results := o + for _, val := range values { + results = append(results, NewByteOption(val)) + } + return results +} + func (o ListByteOption) Slice() []byte { tmp := []byte{} for _, elem := range o { @@ -662,6 +678,14 @@ func (o ListComplex128Option) String() string { return fmt.Sprintf("%v", []Complex128Option(o)) } +func (o ListComplex128Option) Append(values ...complex128) ListComplex128Option { + results := o + for _, val := range values { + results = append(results, NewComplex128Option(val)) + } + return results +} + func (o ListComplex128Option) Slice() []complex128 { tmp := []complex128{} for _, elem := range o { @@ -885,6 +909,14 @@ func (o ListComplex64Option) String() string { return fmt.Sprintf("%v", []Complex64Option(o)) } +func (o ListComplex64Option) Append(values ...complex64) ListComplex64Option { + results := o + for _, val := range values { + results = append(results, NewComplex64Option(val)) + } + return results +} + func (o ListComplex64Option) Slice() []complex64 { tmp := []complex64{} for _, elem := range o { @@ -1108,6 +1140,14 @@ func (o ListErrorOption) String() string { return fmt.Sprintf("%v", []ErrorOption(o)) } +func (o ListErrorOption) Append(values ...error) ListErrorOption { + results := o + for _, val := range values { + results = append(results, NewErrorOption(val)) + } + return results +} + func (o ListErrorOption) Slice() []error { tmp := []error{} for _, elem := range o { @@ -1331,6 +1371,14 @@ func (o ListFloat32Option) String() string { return fmt.Sprintf("%v", []Float32Option(o)) } +func (o ListFloat32Option) Append(values ...float32) ListFloat32Option { + results := o + for _, val := range values { + results = append(results, NewFloat32Option(val)) + } + return results +} + func (o ListFloat32Option) Slice() []float32 { tmp := []float32{} for _, elem := range o { @@ -1554,6 +1602,14 @@ func (o ListFloat64Option) String() string { return fmt.Sprintf("%v", []Float64Option(o)) } +func (o ListFloat64Option) Append(values ...float64) ListFloat64Option { + results := o + for _, val := range values { + results = append(results, NewFloat64Option(val)) + } + return results +} + func (o ListFloat64Option) Slice() []float64 { tmp := []float64{} for _, elem := range o { @@ -1777,6 +1833,14 @@ func (o ListIntOption) String() string { return fmt.Sprintf("%v", []IntOption(o)) } +func (o ListIntOption) Append(values ...int) ListIntOption { + results := o + for _, val := range values { + results = append(results, NewIntOption(val)) + } + return results +} + func (o ListIntOption) Slice() []int { tmp := []int{} for _, elem := range o { @@ -2000,6 +2064,14 @@ func (o ListInt16Option) String() string { return fmt.Sprintf("%v", []Int16Option(o)) } +func (o ListInt16Option) Append(values ...int16) ListInt16Option { + results := o + for _, val := range values { + results = append(results, NewInt16Option(val)) + } + return results +} + func (o ListInt16Option) Slice() []int16 { tmp := []int16{} for _, elem := range o { @@ -2223,6 +2295,14 @@ func (o ListInt32Option) String() string { return fmt.Sprintf("%v", []Int32Option(o)) } +func (o ListInt32Option) Append(values ...int32) ListInt32Option { + results := o + for _, val := range values { + results = append(results, NewInt32Option(val)) + } + return results +} + func (o ListInt32Option) Slice() []int32 { tmp := []int32{} for _, elem := range o { @@ -2446,6 +2526,14 @@ func (o ListInt64Option) String() string { return fmt.Sprintf("%v", []Int64Option(o)) } +func (o ListInt64Option) Append(values ...int64) ListInt64Option { + results := o + for _, val := range values { + results = append(results, NewInt64Option(val)) + } + return results +} + func (o ListInt64Option) Slice() []int64 { tmp := []int64{} for _, elem := range o { @@ -2669,6 +2757,14 @@ func (o ListInt8Option) String() string { return fmt.Sprintf("%v", []Int8Option(o)) } +func (o ListInt8Option) Append(values ...int8) ListInt8Option { + results := o + for _, val := range values { + results = append(results, NewInt8Option(val)) + } + return results +} + func (o ListInt8Option) Slice() []int8 { tmp := []int8{} for _, elem := range o { @@ -2892,6 +2988,14 @@ func (o ListRuneOption) String() string { return fmt.Sprintf("%v", []RuneOption(o)) } +func (o ListRuneOption) Append(values ...rune) ListRuneOption { + results := o + for _, val := range values { + results = append(results, NewRuneOption(val)) + } + return results +} + func (o ListRuneOption) Slice() []rune { tmp := []rune{} for _, elem := range o { @@ -3115,6 +3219,14 @@ func (o ListStringOption) String() string { return fmt.Sprintf("%v", []StringOption(o)) } +func (o ListStringOption) Append(values ...string) ListStringOption { + results := o + for _, val := range values { + results = append(results, NewStringOption(val)) + } + return results +} + func (o ListStringOption) Slice() []string { tmp := []string{} for _, elem := range o { @@ -3338,6 +3450,14 @@ func (o ListUintOption) String() string { return fmt.Sprintf("%v", []UintOption(o)) } +func (o ListUintOption) Append(values ...uint) ListUintOption { + results := o + for _, val := range values { + results = append(results, NewUintOption(val)) + } + return results +} + func (o ListUintOption) Slice() []uint { tmp := []uint{} for _, elem := range o { @@ -3561,6 +3681,14 @@ func (o ListUint16Option) String() string { return fmt.Sprintf("%v", []Uint16Option(o)) } +func (o ListUint16Option) Append(values ...uint16) ListUint16Option { + results := o + for _, val := range values { + results = append(results, NewUint16Option(val)) + } + return results +} + func (o ListUint16Option) Slice() []uint16 { tmp := []uint16{} for _, elem := range o { @@ -3784,6 +3912,14 @@ func (o ListUint32Option) String() string { return fmt.Sprintf("%v", []Uint32Option(o)) } +func (o ListUint32Option) Append(values ...uint32) ListUint32Option { + results := o + for _, val := range values { + results = append(results, NewUint32Option(val)) + } + return results +} + func (o ListUint32Option) Slice() []uint32 { tmp := []uint32{} for _, elem := range o { @@ -4007,6 +4143,14 @@ func (o ListUint64Option) String() string { return fmt.Sprintf("%v", []Uint64Option(o)) } +func (o ListUint64Option) Append(values ...uint64) ListUint64Option { + results := o + for _, val := range values { + results = append(results, NewUint64Option(val)) + } + return results +} + func (o ListUint64Option) Slice() []uint64 { tmp := []uint64{} for _, elem := range o { @@ -4230,6 +4374,14 @@ func (o ListUint8Option) String() string { return fmt.Sprintf("%v", []Uint8Option(o)) } +func (o ListUint8Option) Append(values ...uint8) ListUint8Option { + results := o + for _, val := range values { + results = append(results, NewUint8Option(val)) + } + return results +} + func (o ListUint8Option) Slice() []uint8 { tmp := []uint8{} for _, elem := range o { @@ -4453,6 +4605,14 @@ func (o ListUintptrOption) String() string { return fmt.Sprintf("%v", []UintptrOption(o)) } +func (o ListUintptrOption) Append(values ...uintptr) ListUintptrOption { + results := o + for _, val := range values { + results = append(results, NewUintptrOption(val)) + } + return results +} + func (o ListUintptrOption) Slice() []uintptr { tmp := []uintptr{} for _, elem := range o { diff --git a/vendor/github.com/coryb/figtree/rawoption.go b/vendor/github.com/coryb/figtree/rawoption.go index 7ad816e..8b8b474 100644 --- a/vendor/github.com/coryb/figtree/rawoption.go +++ b/vendor/github.com/coryb/figtree/rawoption.go @@ -218,6 +218,14 @@ func (o ListRawTypeOption) String() string { return fmt.Sprintf("%v", []RawTypeOption(o)) } +func (o ListRawTypeOption) Append(values ...RawType) ListRawTypeOption { + results := o + for _, val := range values { + results = append(results, NewRawTypeOption(val)) + } + return results +} + func (o ListRawTypeOption) Slice() []RawType { tmp := []RawType{} for _, elem := range o {