-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/hgi 6873 #8
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,256 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"review" | ||
] | ||
}, | ||
"id": { | ||
"type": "string", | ||
"description": "The ID of the review" | ||
}, | ||
"attributes": { | ||
"type": "object", | ||
"properties": { | ||
"email": { | ||
"type": "string", | ||
"description": "The email of the author of this review" | ||
}, | ||
"status": { | ||
"type": "string", | ||
"enum": [ | ||
"featured", | ||
"pending", | ||
"published", | ||
"rejected", | ||
"unpublished" | ||
], | ||
"description": "The status of this review" | ||
}, | ||
"verified": { | ||
"type": "boolean", | ||
"description": "The verification status of this review (aka whether or not we have confirmation that the customer bought the product)" | ||
}, | ||
"review_type": { | ||
"type": "string", | ||
"enum": [ | ||
"review", | ||
"question", | ||
"rating" | ||
], | ||
"description": "The type of this review" | ||
}, | ||
"created": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "The datetime when this review was created" | ||
}, | ||
"updated": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "The datetime when this review was updated" | ||
}, | ||
"images": { | ||
"type": "array", | ||
"items": { | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"description": "The list of images submitted with this review (represented as a list of urls). If there are no images, this field will be an empty list." | ||
}, | ||
"product": { | ||
"type": [ | ||
"object", | ||
"null" | ||
], | ||
"description": "The product associated with this review", | ||
"properties": { | ||
"url": { | ||
"type": "string", | ||
"description": "The URL of the product" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the product" | ||
}, | ||
"image_url": { | ||
"type": "string", | ||
"description": "The URL of the product image" | ||
} | ||
} | ||
}, | ||
"rating": { | ||
"type": [ | ||
"integer", | ||
"null" | ||
], | ||
"description": "The rating of this review on a scale from 1-5" | ||
}, | ||
"author": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "The author of this review" | ||
}, | ||
"content": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "The content of this review" | ||
}, | ||
"title": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "The title of this review" | ||
}, | ||
"smart_quote": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "A quote from this review that summarizes the content" | ||
}, | ||
"public_reply": { | ||
"type": [ | ||
"object", | ||
"null" | ||
], | ||
"properties": { | ||
"content": { | ||
"type": "string", | ||
"description": "The content of the public reply" | ||
}, | ||
"author": { | ||
"type": "string", | ||
"description": "The author of the public reply" | ||
}, | ||
"updated": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "The datetime when this public reply was updated" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"email", | ||
"verified", | ||
"review_type", | ||
"created", | ||
"updated", | ||
"images" | ||
] | ||
}, | ||
"links": { | ||
"type": "object", | ||
"properties": { | ||
"self": { | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Self link" | ||
} | ||
}, | ||
"required": [ | ||
"self" | ||
] | ||
}, | ||
"relationships": { | ||
"type": [ | ||
"object", | ||
"null" | ||
], | ||
"properties": { | ||
"events": { | ||
"type": [ | ||
"object", | ||
"null" | ||
], | ||
"properties": { | ||
"data": { | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"event" | ||
] | ||
}, | ||
"id": { | ||
"type": "string", | ||
"description": "Related Events" | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"id" | ||
] | ||
} | ||
}, | ||
"links": { | ||
"type": "object", | ||
"properties": { | ||
"self": { | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Self link" | ||
}, | ||
"related": { | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Related link" | ||
} | ||
}, | ||
"required": [ | ||
"self", | ||
"related" | ||
] | ||
} | ||
} | ||
}, | ||
"item": { | ||
"type": "object", | ||
"properties": { | ||
"links": { | ||
"type": "object", | ||
"properties": { | ||
"self": { | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Self link" | ||
}, | ||
"related": { | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Related link" | ||
} | ||
}, | ||
"required": [ | ||
"self", | ||
"related" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"id", | ||
"attributes", | ||
"links" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What does this function do?
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.
It gets from a schema file a list of default properties to complement the dynamic discover