-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added spec for dependent fields in expesnse rules #546
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -3333,6 +3333,47 @@ components: | |||||
nullable: true | ||||||
example: true | ||||||
description: This field marks whether a given expense is billable or not. | ||||||
dependent_expense_fields: | ||||||
type: object | ||||||
description: | | ||||||
Dependent expense fields details | ||||||
properties: | ||||||
parent_expense_field_id: | ||||||
type: integer | ||||||
description: | | ||||||
This id provided by Fyle to identify an expense field. | ||||||
example: 123 | ||||||
dependent_expense_field_id: | ||||||
type: integer | ||||||
description: | | ||||||
This id provided by Fyle to identify an expense field. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
example: 123 | ||||||
dependent_expense_field_value_id: | ||||||
type: integer | ||||||
description: | | ||||||
This id provided by Fyle to identify dependent field value. | ||||||
example: 123 | ||||||
name: | ||||||
type: string | ||||||
description: | | ||||||
This represents the name of the dependent expense field. | ||||||
example: cf1 | ||||||
value: | ||||||
nullable: true | ||||||
oneOf: | ||||||
- type: string | ||||||
example: string1 | ||||||
- type: boolean | ||||||
example: true | ||||||
- type: integer | ||||||
example: 123 | ||||||
- $ref: '#/components/schemas/location' | ||||||
- type: array | ||||||
items: | ||||||
type: string | ||||||
example: | ||||||
- v1 | ||||||
- v2 | ||||||
expense_rule_data_in: | ||||||
type: object | ||||||
nullable: true | ||||||
|
@@ -3371,6 +3412,13 @@ components: | |||||
Custom fields | ||||||
items: | ||||||
$ref: '#/components/schemas/custom_field' | ||||||
dependent_fields: | ||||||
type: array | ||||||
nullable: true | ||||||
description: | | ||||||
Dependent expense fields | ||||||
items: | ||||||
$ref: '#/components/schemas/dependent_expense_fields' | ||||||
tax_group: | ||||||
type: object | ||||||
nullable: true | ||||||
|
@@ -12827,6 +12875,13 @@ components: | |||||
Custom fields | ||||||
items: | ||||||
$ref: '#/components/schemas/custom_field' | ||||||
dependent_fields: | ||||||
type: array | ||||||
nullable: true | ||||||
description: | | ||||||
Dependent expense fields | ||||||
items: | ||||||
$ref: '#/components/schemas/dependent_expense_fields' | ||||||
expense_rule_out: | ||||||
type: object | ||||||
additionalProperties: false | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1574,6 +1574,47 @@ components: | |
nullable: true | ||
example: true | ||
description: This field marks whether a given expense is billable or not. | ||
dependent_expense_fields: | ||
type: object | ||
description: | | ||
Dependent expense fields details | ||
properties: | ||
parent_expense_field_id: | ||
type: integer | ||
description: | | ||
This id provided by Fyle to identify an expense field. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same comments as above |
||
example: 123 | ||
dependent_expense_field_id: | ||
type: integer | ||
description: | | ||
This id provided by Fyle to identify an expense field. | ||
example: 123 | ||
dependent_expense_field_value_id: | ||
type: integer | ||
description: | | ||
This id provided by Fyle to identify dependent field value. | ||
example: 123 | ||
name: | ||
type: string | ||
description: | | ||
This represents the name of the dependent expense field. | ||
example: cf1 | ||
value: | ||
nullable: true | ||
oneOf: | ||
- type: string | ||
example: string1 | ||
- type: boolean | ||
example: true | ||
- type: integer | ||
example: 123 | ||
- $ref: '#/components/schemas/location' | ||
- type: array | ||
items: | ||
type: string | ||
example: | ||
- v1 | ||
- v2 | ||
expense_rule_data_in: | ||
type: object | ||
nullable: true | ||
|
@@ -1612,6 +1653,13 @@ components: | |
Custom fields | ||
items: | ||
$ref: '#/components/schemas/custom_field' | ||
dependent_fields: | ||
type: array | ||
nullable: true | ||
description: | | ||
Dependent expense fields | ||
items: | ||
$ref: '#/components/schemas/dependent_expense_fields' | ||
tax_group: | ||
type: object | ||
nullable: true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -703,6 +703,46 @@ custom_fields: | |
items: | ||
$ref: '#/custom_field' | ||
|
||
dependent_expense_fields: | ||
type: object | ||
description: | | ||
Dependent expense fields details | ||
properties: | ||
parent_expense_field_id: | ||
type: integer | ||
description: | | ||
This id provided by Fyle to identify an expense field. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
example: 123 | ||
dependent_expense_field_id: | ||
type: integer | ||
description: | | ||
This id provided by Fyle to identify an expense field. | ||
example: 123 | ||
dependent_expense_field_value_id: | ||
type: integer | ||
description: | | ||
This id provided by Fyle to identify dependent field value. | ||
example: 123 | ||
name: | ||
type: string | ||
description: | | ||
This represents the name of the dependent expense field. | ||
example: 'cf1' | ||
value: | ||
nullable: true | ||
oneOf: | ||
- type: string | ||
example: string1 | ||
- type: boolean | ||
example: True | ||
- type: integer | ||
example: 123 | ||
- $ref: '#/location' | ||
- type: array | ||
items: | ||
type: string | ||
example: [ 'v1', 'v2' ] | ||
|
||
expense_custom_field: | ||
type: object | ||
description: | | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.