0% found this document useful (0 votes)
26 views4 pages

JSON Activity4

Uploaded by

anne moises
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views4 pages

JSON Activity4

Uploaded by

anne moises
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Anne T.

Moises
BSINFOTECH 2C
ACTIVITY 4
SIAS-CLASS LIST INFORMATION
{

"$schema": "http://json-schema.org/draft-07/schema#",

"title": "SIAS-Class List Information",

"type": "object",

"properties": {

"SIAS-ClassList": {

"type": "object",

"properties": {

"Student": {

"type": "array",

"items": {

"type": "object",

"properties": {

"StudentID": {

"type": "string",

"minLength": 1

},

"StudentName": {

"type": "string",

"minLength": 1

},

"Sex": {

"type": "string",

"enum": ["Male", "Female"]

},

"Course": {
"type": "string",

"minLength": 1

},

"Year": {

"type": "integer",

"minimum": 1

},

"Contact": {

"type": "integer"

},

"Email": {

"type": "string",

"format": "email"

},

"required": ["StudentID", "StudentName", "Sex", "Course", "Year", "Contact", "Email"]

},

"required": ["Student"]

},

"required": ["SIAS-ClassList"]

PRODUCT INVENTORY INFORMATION

"$schema": "http://json-schema.org/draft-07/schema#",

"title": "PRODUCT INVENTORY INFORMATION",


"type": "object",

"properties": {

"InventoryInformation": {

"type": "object",

"properties": {

"Product": {

"type": "array",

"items": {

"type": "object",

"properties": {

"ID": {

"type": "string",

"minLength": 1

},

"Name": {

"type": "string",

"minLength": 1

},

"Description": {

"type": "string"

},

"Price": {

"type": "number",

"minimum": 0

},

"QuantityInStock": {

"type": "integer",

"minimum": 0

},
"Category": {

"type": "string"

},

"required": ["ID", "Name", "Price", "QuantityInStock", "Category"]

},

"required": ["Product"]

},

"required": ["InventoryInformation"]

You might also like