Skip to content
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

item-group can contains a "_postman_isSubFolder" attribute #166

Open
jmini opened this issue Sep 8, 2020 · 3 comments
Open

item-group can contains a "_postman_isSubFolder" attribute #166

jmini opened this issue Sep 8, 2020 · 3 comments

Comments

@jmini
Copy link
Contributor

jmini commented Sep 8, 2020

When an Item into a sub-sub folder (a.k.a item-group):

Sub-sub folder

The corresponding exported collection is:

{
	"info": {
		"_postman_id": "4e034bd9-dc3b-427b-ba77-83a8ecc9cdc8",
		"name": "example",
		"description": "This is an example",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "foo",
			"item": [
				{
					"name": "bar",
					"item": [
						{
							"name": "Echo",
							"protocolProfileBehavior": {
								"strictSSL": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://postman-echo.com/get",
									"protocol": "https",
									"host": [
										"postman-echo",
										"com"
									],
									"path": [
										"get"
									]
								}
							},
							"response": []
						}
					],
					"protocolProfileBehavior": {},
					"_postman_isSubFolder": true
				}
			],
			"event": [],
			"protocolProfileBehavior": {}
		}
	],
	"event": [],
	"protocolProfileBehavior": {}
}

As you can see on line 39, there is a _postman_isSubFolder attribute (boolean value).

But the schema doesn't describes this _postman_isSubFolder attribute, inside the properties map:

@codenirvana
Copy link
Member

Looks like this is a bug in the collection export/transformation module.

@jmini
Copy link
Contributor Author

jmini commented Sep 9, 2020

@codenirvana: thank you for the feedback.

Is there already an issue for the broken export function in the Postman app?

Do I get this right that you don't want have this field documented in the schema, because it is a bug in the first place?
On the other side, there are already collections exported with this attribute. Having this attribute absent from the schema makes them all invalid…

@jviotti
Copy link

jviotti commented Oct 1, 2020

@jmini

On the other side, there are already collections exported with this attribute. Having this attribute absent from the schema makes them all invalid…

Keep in mind that the schemas don't seem to define additionalProperties: false, and extra properties not defined in the schema are permitted by default by JSON Schema, so having them there is actually not invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants