Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed struct types and added missing properties in request type fields #275

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions pkg/infra/models/sm_request_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,24 @@ type RequestTypeFieldScheme struct {
Required bool `json:"required,omitempty"` // Indicates if the request type field is required.
DefaultValues []*RequestTypeFieldValueScheme `json:"defaultValues,omitempty"` // The default values of the request type field.
ValidValues []*RequestTypeFieldValueScheme `json:"validValues,omitempty"` // The valid values of the request type field.
PresetValues []string `json:"presetValues,omitempty"` // The preset values of the request type field.
JiraSchema *RequestTypeJiraSchema `json:"jiraSchema,omitempty"` // The Jira schema of the request type field.
Visible bool `json:"visible,omitempty"` // Indicates if the request type field is visible.
}

// RequestTypeFieldValueScheme represents a field value of a request type field.
type RequestTypeFieldValueScheme struct {
Value string `json:"value,omitempty"` // The value of the request type field value.
Label string `json:"label,omitempty"` // The label of the request type field value.
Children []interface{} `json:"children,omitempty"` // The children of the request type field value.
Value string `json:"value,omitempty"` // The value of the request type field value.
Label string `json:"label,omitempty"` // The label of the request type field value.
Children []*RequestTypeFieldValueScheme `json:"children,omitempty"` // The children of the request type field value.
}

// RequestTypeJiraSchema represents the Jira schema of a request type field.
type RequestTypeJiraSchema struct {
Type string `json:"type,omitempty"` // The type of the Jira schema.
Items string `json:"items,omitempty"` // The items of the Jira schema.
System string `json:"system,omitempty"` // The system of the Jira schema.
Custom string `json:"custom,omitempty"` // The custom of the Jira schema.
CustomID int `json:"customId,omitempty"` // The custom ID of the Jira schema.
Type string `json:"type,omitempty"` // The type of the Jira schema.
Items string `json:"items,omitempty"` // The items of the Jira schema.
System string `json:"system,omitempty"` // The system of the Jira schema.
Custom string `json:"custom,omitempty"` // The custom of the Jira schema.
CustomID int `json:"customId,omitempty"` // The custom ID of the Jira schema.
Configuration map[string]string `json:"configuration,omitempty"` // The configuration of the Jira schema.
}
Loading