Skip to content

Commit

Permalink
Merge pull request #308 from venkatramanm/release-1.x
Browse files Browse the repository at this point in the history
Split big core yaml into smaller files for maintainabilty
  • Loading branch information
Ravi Prakash authored Aug 25, 2022
2 parents a9436b5 + 0b9f3b9 commit 65266b3
Show file tree
Hide file tree
Showing 83 changed files with 5,035 additions and 3,517 deletions.
3,150 changes: 3,150 additions & 0 deletions core/v0/api/_build/merged.yaml

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions core/v0/api/_index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
Ack:
$ref: "./components/schemas/Ack.yaml"
AddOn:
$ref: "./components/schemas/AddOn.yaml"
Address:
$ref: "./components/schemas/Address.yaml"
Agent:
$ref: "./components/schemas/Agent.yaml"
Authorization:
$ref: "./components/schemas/Authorization.yaml"
Billing:
$ref: "./components/schemas/Billing.yaml"
Cancellation:
$ref: "./components/schemas/Cancellation.yaml"

CancellationTerm:
$ref: "./components/schemas/CancellationTerm.yaml"
Catalog:
$ref: "./components/schemas/Catalog.yaml"

Category:
$ref: "./components/schemas/Category.yaml"

Circle:
$ref: "./components/schemas/Circle.yaml"

City:
$ref: "./components/schemas/City.yaml"
Contact:
$ref: "./components/schemas/Contact.yaml"

Context:
$ref: "./components/schemas/Context.yaml"

Country:
$ref: "./components/schemas/Country.yaml"

Credential:
$ref: "./components/schemas/Credential.yaml"

DecimalValue:
$ref: "./components/schemas/DecimalValue.yaml"

Descriptor:
$ref: "./components/schemas/Descriptor.yaml"

Document:
$ref: "./components/schemas/Document.yaml"

Domain:
$ref: "./components/schemas/Domain.yaml"

Duration:
$ref: "./components/schemas/Duration.yaml"

Error:
$ref: "./components/schemas/Error.yaml"

Fee:
$ref: "./components/schemas/Fee.yaml"

Form:
$ref: "./components/schemas/Form.yaml"

Fulfillment:
$ref: "./components/schemas/Fulfillment.yaml"

Gps:
$ref: "./components/schemas/Gps.yaml"

Image:
$ref: "./components/schemas/Image.yaml"
Intent:
$ref: "./components/schemas/Intent.yaml"

ItemQuantity:
$ref: "./components/schemas/ItemQuantity.yaml"

Item:
$ref: "./components/schemas/Item.yaml"

Location:
$ref: "./components/schemas/Location.yaml"

MediaFile:
$ref: "./components/schemas/MediaFile.yaml"

Name:
$ref: "./components/schemas/Name.yaml"

Offer:
$ref: "./components/schemas/Offer.yaml"

Option:
$ref: "./components/schemas/Option.yaml"

Order:
$ref: "./components/schemas/Order.yaml"

Organization:
$ref: "./components/schemas/Organization.yaml"

Payment:
$ref: "./components/schemas/Payment.yaml"

Person:
$ref: "./components/schemas/Person.yaml"

Price:
$ref: "./components/schemas/Price.yaml"

Provider:
$ref: "./components/schemas/Provider.yaml"

Quotation:
$ref: "./components/schemas/Quotation.yaml"

Rateable:
$ref: "./components/schemas/Rateable.yaml"

Rating:
$ref: "./components/schemas/Rating.yaml"

RatingPolicy:
$ref: "./components/schemas/RatingPolicy.yaml"

RefundTerm:
$ref: "./components/schemas/RefundTerm.yaml"

ReplacementTerm:
$ref: "./components/schemas/ReplacementTerm.yaml"

ReturnTerm:
$ref: "./components/schemas/ReturnTerm.yaml"

Scalar:
$ref: "./components/schemas/Scalar.yaml"

Schedule:
$ref: "./components/schemas/Schedule.yaml"

State:
$ref: "./components/schemas/State.yaml"

Support:
$ref: "./components/schemas/Support.yaml"

Tags:
$ref: "./components/schemas/Tags.yaml"

Time:
$ref: "./components/schemas/Time.yaml"

Tracking:
$ref: "./components/schemas/Tracking.yaml"

Vehicle:
$ref: "./components/schemas/Vehicle.yaml"

XInput:
$ref: "./components/schemas/XInput.yaml"
25 changes: 25 additions & 0 deletions core/v0/api/components/io/Cancel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
type: object
properties:
context:
allOf:
- $ref: "../schemas/Context.yaml"
- properties:
action:
enum:
- cancel
required:
- action
message:
type: object
properties:
order_id:
$ref: "../schemas/Order.yaml#/properties/id"
cancellation_reason_id:
$ref: "../schemas/Option.yaml#/properties/id"
descriptor:
$ref: "../schemas/Descriptor.yaml"
required:
- order_id
required:
- context
- message
21 changes: 21 additions & 0 deletions core/v0/api/components/io/Confirm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
type: object
properties:
context:
allOf:
- $ref: "../schemas/Context.yaml"
- properties:
action:
enum:
- confirm
required:
- action
message:
type: object
properties:
order:
$ref: "../schemas/Order.yaml"
required:
- order
required:
- context
- message
21 changes: 21 additions & 0 deletions core/v0/api/components/io/Init.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
type: object
properties:
context:
allOf:
- $ref: "../schemas/Context.yaml"
- properties:
action:
enum:
- init
required:
- action
message:
type: object
properties:
order:
$ref: "../schemas/Order.yaml"
required:
- order
required:
- context
- message
22 changes: 22 additions & 0 deletions core/v0/api/components/io/OnCancel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
properties:
context:
allOf:
- $ref: "../schemas/Context.yaml"
- properties:
action:
enum:
- on_cancel
required:
- action
message:
type: object
properties:
order:
$ref: "../schemas/Order.yaml"
required:
- order
error:
$ref: "../schemas/Error.yaml"
required:
- context
22 changes: 22 additions & 0 deletions core/v0/api/components/io/OnConfirm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
properties:
context:
allOf:
- $ref: "../schemas/Context.yaml"
- properties:
action:
enum:
- on_confirm
required:
- action
message:
type: object
properties:
order:
$ref: "../schemas/Order.yaml"
required:
- order
error:
$ref: "../schemas/Error.yaml"
required:
- context
22 changes: 22 additions & 0 deletions core/v0/api/components/io/OnInit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
properties:
context:
allOf:
- $ref: "../schemas/Context.yaml"
- properties:
action:
enum:
- on_init
required:
- action
message:
type: object
properties:
order:
$ref: "../schemas/Order.yaml"
required:
- order
error:
$ref: "../schemas/Error.yaml"
required:
- context
22 changes: 22 additions & 0 deletions core/v0/api/components/io/OnRating.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
properties:
context:
allOf:
- $ref: "../schemas/Context.yaml"
- properties:
action:
enum:
- on_rating
required:
- action
message:
type: object
properties:
feedback:
description: A feedback form to allow the user to provide additional information on the rating provided
allOf:
- $ref: "../schemas/Form.yaml"
error:
$ref: "../schemas/Error.yaml"
required:
- context
22 changes: 22 additions & 0 deletions core/v0/api/components/io/OnSearch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
properties:
context:
allOf:
- $ref: "../schemas/Context.yaml"
- properties:
action:
enum:
- on_search
required:
- action
message:
type: object
properties:
catalog:
$ref: "../schemas/Catalog.yaml"
required:
- catalog
error:
$ref: "../schemas/Error.yaml"
required:
- context
20 changes: 20 additions & 0 deletions core/v0/api/components/io/OnSelect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type: object
properties:
context:
allOf:
- $ref: "../schemas/Context.yaml"
- properties:
action:
enum:
- on_select
required:
- action
message:
type: object
properties:
order:
$ref: "../schemas/Order.yaml"
error:
$ref: "../schemas/Error.yaml"
required:
- context
22 changes: 22 additions & 0 deletions core/v0/api/components/io/OnStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
properties:
context:
allOf:
- $ref: "../schemas/Context.yaml"
- properties:
action:
enum:
- on_status
required:
- action
message:
type: object
properties:
order:
$ref: "../schemas/Order.yaml"
required:
- order
error:
$ref: "../schemas/Error.yaml"
required:
- context
Loading

0 comments on commit 65266b3

Please sign in to comment.