Skip to content

Instantly share code, notes, and snippets.

@gokulraja
Created December 18, 2017 08:33
Show Gist options
  • Save gokulraja/8f5628805ff110a81b184b3acf135a29 to your computer and use it in GitHub Desktop.
Save gokulraja/8f5628805ff110a81b184b3acf135a29 to your computer and use it in GitHub Desktop.
datadump from postman export json schema
{
"$ref": "#/definitions/Welcome",
"definitions": {
"Welcome": {
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer"
},
"collections": {
"type": "array",
"items": {
"$ref": "#/definitions/Collection"
}
},
"environments": {
"type": "array",
"items": {
"$ref": "#/definitions/Environment"
}
},
"headerPresets": {
"type": "array",
"items": {}
},
"globals": {
"type": "array",
"items": {}
}
},
"required": [
"collections",
"environments",
"globals",
"headerPresets",
"version"
],
"title": "Welcome"
},
"Environment": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"$ref": "#/definitions/Datum"
}
},
"team": {
"type": "null"
},
"timestamp": {
"type": "integer"
}
},
"required": [
"id",
"name",
"timestamp",
"values"
],
"title": "environment"
},
"Collection": {
"type": "object",
"additionalProperties": false,
"properties": {
"favoriters": {
"oneOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "favoriters"
},
"owner": {
"type": "string"
},
"lastUpdatedBy": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"lastRevision": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "lastRevision"
},
"team": {
"type": "null"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"remote_id": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
},
{
"type": "string"
}
],
"title": "remote_id"
},
"remoteLink": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"order": {
"type": "array",
"items": {
"type": "string"
}
},
"shared": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"write": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"createdAt": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"title": "createdAt"
},
"updatedAt": {
"oneOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "integer"
}
],
"title": "updatedAt"
},
"folders": {
"type": "array",
"items": {
"$ref": "#/definitions/Folder"
}
},
"favorite": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"subscribed": {
"type": "boolean"
},
"sharedWithTeam": {
"type": "boolean"
},
"hasRequests": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"synced": {
"type": "boolean"
},
"requests": {
"type": "array",
"items": {
"$ref": "#/definitions/CollectionRequest"
}
},
"folders_order": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"title": "folders_order"
},
"timestamp": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "lastRevision"
},
"remoteLinkUpdatedAt": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "lastRevision"
},
"public": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"published": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"permissions": {
"oneOf": [
{
"$ref": "#/definitions/Permissions"
},
{
"type": "null"
}
],
"title": "ermissions"
},
"syncedPermissions": {
"oneOf": [
{
"$ref": "#/definitions/Permissions"
},
{
"type": "null"
}
],
"title": "ermissions"
},
"events": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/CollectionEvent"
}
},
{
"type": "null"
}
],
"title": "events"
},
"variables": {
"oneOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "favoriters"
},
"auth": {
"type": "null"
}
},
"required": [
"createdAt",
"folders",
"id",
"name",
"order",
"owner",
"requests",
"sharedWithTeam",
"subscribed",
"synced",
"updatedAt"
],
"title": "collection"
},
"CollectionRequest": {
"type": "object",
"additionalProperties": false,
"properties": {
"owner": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
},
{
"type": "string"
}
],
"title": "remote_id"
},
"lastUpdatedBy": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"lastRevision": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "lastRevision"
},
"folder": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"dataMode": {
"type": "string"
},
"data": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Datum"
}
},
{
"type": "null"
},
{
"type": "string"
}
],
"title": "data"
},
"rawModeData": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"descriptionFormat": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"description": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"headers": {
"type": "string"
},
"method": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"pathVariables": {
"$ref": "#/definitions/Permissions"
},
"url": {
"type": "string"
},
"preRequestScript": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"tests": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"currentHelper": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"helperAttributes": {
"oneOf": [
{
"type": "array",
"items": {}
},
{
"$ref": "#/definitions/HelperAttributes"
},
{
"type": "null"
},
{
"type": "string"
}
],
"title": "helperAttributes"
},
"createdAt": {
"oneOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
],
"title": "atedAt"
},
"updatedAt": {
"oneOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
],
"title": "atedAt"
},
"responses": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Response"
}
},
{
"type": "null"
}
],
"title": "responses"
},
"collectionId": {
"type": "string"
},
"auth": {
"oneOf": [
{
"$ref": "#/definitions/Auth"
},
{
"type": "null"
}
],
"title": "auth"
},
"queryParams": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/HeaderDatum"
}
},
{
"type": "null"
}
],
"title": "headerData"
},
"headerData": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/HeaderDatum"
}
},
{
"type": "null"
}
],
"title": "headerData"
},
"pathVariableData": {
"oneOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "favoriters"
},
"write": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"timestamp": {
"type": "null"
},
"time": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "lastRevision"
},
"collection_id": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"events": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/RequestEvent"
}
},
{
"type": "null"
}
],
"title": "events"
},
"version": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "lastRevision"
},
"isFromCollection": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"variables": {
"type": "null"
}
},
"required": [
"collectionId",
"dataMode",
"headers",
"id",
"name",
"pathVariables",
"url"
],
"title": "request"
},
"Response": {
"type": "object",
"additionalProperties": false,
"properties": {
"owner": {
"type": "string"
},
"lastUpdatedBy": {
"type": "string"
},
"lastRevision": {
"type": "integer"
},
"request": {
"oneOf": [
{
"$ref": "#/definitions/ResponseRequest"
},
{
"type": "string"
}
],
"title": "request"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"status": {
"type": "string"
},
"responseCode": {
"$ref": "#/definitions/ResponseCode"
},
"time": {
"type": "string"
},
"headers": {
"type": "array",
"items": {
"$ref": "#/definitions/Header"
}
},
"cookies": {
"type": "array",
"items": {
"$ref": "#/definitions/Cooky"
}
},
"mime": {
"type": "string"
},
"text": {
"type": "string"
},
"language": {
"type": "string"
},
"rawDataType": {
"type": "string"
},
"state": {
"oneOf": [
{
"$ref": "#/definitions/State"
},
{
"type": "null"
}
],
"title": "state"
},
"previewType": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"searchResultScrolledTo": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"version": {
"type": "null"
},
"requestObject": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"write": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
}
},
"required": [
"cookies",
"createdAt",
"headers",
"id",
"language",
"lastRevision",
"lastUpdatedBy",
"mime",
"name",
"owner",
"rawDataType",
"request",
"requestObject",
"responseCode",
"status",
"text",
"time",
"updatedAt"
],
"title": "response"
},
"State": {
"type": "object",
"additionalProperties": false,
"properties": {
"size": {
"type": "string"
}
},
"required": [
"size"
],
"title": "state"
},
"ResponseCode": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "integer"
},
"name": {
"type": "string"
},
"detail": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
}
},
"required": [
"code",
"name"
],
"title": "responseCode"
},
"ResponseRequest": {
"type": "object",
"additionalProperties": false,
"properties": {
"url": {
"type": "string"
},
"headers": {
"type": "array",
"items": {
"$ref": "#/definitions/Datum"
}
},
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/Datum"
}
},
"method": {
"type": "string"
},
"dataMode": {
"type": "string"
}
},
"required": [
"data",
"dataMode",
"headers",
"method",
"url"
],
"title": "request"
},
"Header": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"key": {
"type": "string"
},
"value": {
"type": "string"
},
"description": {
"type": "string"
},
"isLink": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
}
},
"required": [
"description",
"key",
"name",
"value"
],
"title": "header"
},
"Cooky": {
"type": "object",
"additionalProperties": false,
"properties": {
"domain": {
"type": "string"
},
"expirationDate": {
"oneOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "expirationDate"
},
"hostOnly": {
"type": "boolean"
},
"httpOnly": {
"type": "boolean"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"secure": {
"type": "boolean"
},
"session": {
"type": "boolean"
},
"storeId": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"domain",
"hostOnly",
"httpOnly",
"name",
"path",
"secure",
"session",
"storeId",
"value"
],
"title": "cooky"
},
"HelperAttributes": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"username": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"password": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"saveToRequest": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"hawk_id": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"hawk_key": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"algorithm": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"user": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"nonce": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"timestamp": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"realm": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"nonceCount": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"clientNonce": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"opaque": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"qop": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
}
},
"required": [],
"title": "helperAttributes"
},
"HeaderDatum": {
"type": "object",
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
},
"equals": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"description": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"enabled": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
}
},
"required": [
"key",
"value"
],
"title": "headerDatum"
},
"RequestEvent": {
"type": "object",
"additionalProperties": false,
"properties": {
"listen": {
"type": "string"
},
"script": {
"$ref": "#/definitions/PurpleScript"
}
},
"required": [
"listen",
"script"
],
"title": "event"
},
"PurpleScript": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string"
},
"exec": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"exec",
"type"
],
"title": "script"
},
"Datum": {
"type": "object",
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
},
"enabled": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
},
"type": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"name": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"description": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
}
},
"required": [
"key",
"value"
],
"title": "datum"
},
"Auth": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string"
},
"oauth1": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Basic"
}
},
{
"type": "null"
}
],
"title": "basic"
},
"basic": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Basic"
}
},
{
"type": "null"
}
],
"title": "basic"
},
"hawk": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Basic"
}
},
{
"type": "null"
}
],
"title": "basic"
},
"digest": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Digest"
}
},
{
"type": "null"
}
],
"title": "digest"
}
},
"required": [
"type"
],
"title": "auth"
},
"Digest": {
"type": "object",
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"value": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"type": {
"type": "string"
}
},
"required": [
"key",
"type"
],
"title": "digest"
},
"Basic": {
"type": "object",
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"value": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "string"
}
],
"title": "value"
},
"type": {
"type": "string"
}
},
"required": [
"key",
"type"
],
"title": "basic"
},
"Permissions": {
"type": "object",
"additionalProperties": false,
"properties": {},
"required": [],
"title": "permissions"
},
"Folder": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"collectionId": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"collection": {
"type": "string"
},
"order": {
"type": "array",
"items": {
"type": "string"
}
},
"owner": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"title": "createdAt"
},
"folders_order": {
"oneOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "favoriters"
},
"auth": {
"type": "null"
},
"createdAt": {
"oneOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "atedAt"
},
"updatedAt": {
"oneOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "atedAt"
},
"id": {
"type": "string"
},
"collection_id": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"lastUpdatedBy": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
],
"title": "description"
},
"lastRevision": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "lastRevision"
},
"folder": {
"type": "null"
},
"variables": {
"type": "null"
},
"events": {
"type": "null"
},
"write": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "favorite"
}
},
"required": [
"collection",
"description",
"id",
"name",
"order",
"owner"
],
"title": "folder"
},
"CollectionEvent": {
"type": "object",
"additionalProperties": false,
"properties": {
"listen": {
"type": "string"
},
"script": {
"$ref": "#/definitions/FluffyScript"
}
},
"required": [
"listen",
"script"
],
"title": "event"
},
"FluffyScript": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"exec": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"exec",
"id",
"type"
],
"title": "script"
}
}
}
@gokulraja
Copy link
Author

Sample json for quick reference
{
"version": 1,
"collections": [
{
"favoriters": [],
"owner": "00000",
"lastUpdatedBy": "00000",
"lastRevision": 427490696,
"team": null,
"id": "5d14974b-2134-3925-d752-00f45c154f49",
"name": "QQQQQQQ",
"description": "",
"remote_id": "0",
"remoteLink": "",
"order": [
"casuw3-770f-8142-b71d-nsiugfuigdf3728"
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment