Skip to content

Commit

Permalink
fix: Adding patch for removing CustomField description from required …
Browse files Browse the repository at this point in the history
…in POST Service Profile Search (#97)

Removed the `CustomField` `description` from required list in `POST`
Service Profile Search
```
CustomField:
    required: 
        - description 
```
  • Loading branch information
d-bhola authored Mar 3, 2025
1 parent f9e90b4 commit f2e84a7
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 17 deletions.
9 changes: 7 additions & 2 deletions services/fabricv4/docs/CustomField.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Label** | **string** | |
**Description** | **string** | |
**Description** | Pointer to **string** | | [optional]
**Required** | Pointer to **bool** | | [optional]
**DataType** | [**CustomFieldDataType**](CustomFieldDataType.md) | |
**Options** | Pointer to **[]string** | | [optional]
Expand All @@ -15,7 +15,7 @@ Name | Type | Description | Notes

### NewCustomField

`func NewCustomField(label string, description string, dataType CustomFieldDataType, ) *CustomField`
`func NewCustomField(label string, dataType CustomFieldDataType, ) *CustomField`

NewCustomField instantiates a new CustomField object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -69,6 +69,11 @@ and a boolean to check if the value has been set.

SetDescription sets Description field to given value.

### HasDescription

`func (o *CustomField) HasDescription() bool`

HasDescription returns a boolean if a field has been set.

### GetRequired

Expand Down
36 changes: 22 additions & 14 deletions services/fabricv4/model_custom_field.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion spec/services/fabricv4/oas3.patched/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12648,7 +12648,6 @@ components:
CustomField:
required:
- dataType
- description
- isRequired
- label
properties:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/spec/services/fabricv4/oas3.patched/swagger.yaml b/spec/services/fabricv4/oas3.patched/swagger.yaml
index 734e5b81..1d793154 100644
--- a/spec/services/fabricv4/oas3.patched/swagger.yaml
+++ b/spec/services/fabricv4/oas3.patched/swagger.yaml
@@ -12648,7 +12648,6 @@ components:
CustomField:
required:
- dataType
- - description
- isRequired
- label
properties:

0 comments on commit f2e84a7

Please sign in to comment.