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

Smoke test for hierarchy_generic #2797

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"swagger": "2.0",
"info": {
"title": "(title)",
"version": "0000-00-00",
"x-typespec-generated": [
{
"emitter": "@azure-tools/typespec-autorest"
}
]
},
"schemes": [
"https"
],
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"tags": [],
"paths": {
"/": {
"post": {
"operationId": "Op1",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/A"
}
}
],
"responses": {
"204": {
"description": "There is no content to send for this request, but the headers may be useful. "
}
}
}
},
"/b": {
"post": {
"operationId": "B_Op1",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/B.A"
}
}
],
"responses": {
"204": {
"description": "There is no content to send for this request, but the headers may be useful. "
}
}
}
},
"/b/c": {
"post": {
"operationId": "C_Op1",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/B.A"
}
}
],
"responses": {
"204": {
"description": "There is no content to send for this request, but the headers may be useful. "
}
}
}
},
"/b/e": {
"post": {
"operationId": "C_Op1",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/B.E.A"
}
}
],
"responses": {
"204": {
"description": "There is no content to send for this request, but the headers may be useful. "
}
}
}
},
"/d": {
"post": {
"operationId": "D_Op1",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/A"
}
}
],
"responses": {
"204": {
"description": "There is no content to send for this request, but the headers may be useful. "
}
}
}
}
},
"definitions": {
"A": {
"type": "object",
"properties": {
"prop1": {
"type": "string"
}
},
"required": [
"prop1"
]
},
"B.A": {
"type": "object",
"properties": {
"prop2": {
"type": "string"
}
},
"required": [
"prop2"
]
},
"B.E.A": {
"type": "object",
"properties": {
"prop3": {
"type": "string"
}
},
"required": [
"prop3"
]
}
},
"parameters": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts",
"./models": "./src/models/index.ts",
"./api": "./src/api/index.ts",
"./api/b": "./src/api/b/index.ts",
"./api/b/e/c": "./src/api/b/e/c/index.ts",
"./api/b/c": "./src/api/b/c/index.ts",
"./api/d": "./src/api/d/index.ts"
"./models": "./src/models/index.ts"
},
"dialects": [
"esm",
Expand Down Expand Up @@ -87,137 +83,5 @@
"test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node",
"test": "npm run clean && tshy && npm run unit-test:node && npm run unit-test:browser && npm run integration-test",
"build": "npm run clean && tshy && npm run extract-api"
},
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./dist/browser/index.d.ts",
"default": "./dist/browser/index.js"
},
"react-native": {
"types": "./dist/react-native/index.d.ts",
"default": "./dist/react-native/index.js"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
},
"./models": {
"browser": {
"types": "./dist/browser/models/index.d.ts",
"default": "./dist/browser/models/index.js"
},
"react-native": {
"types": "./dist/react-native/models/index.d.ts",
"default": "./dist/react-native/models/index.js"
},
"import": {
"types": "./dist/esm/models/index.d.ts",
"default": "./dist/esm/models/index.js"
},
"require": {
"types": "./dist/commonjs/models/index.d.ts",
"default": "./dist/commonjs/models/index.js"
}
},
"./api": {
"browser": {
"types": "./dist/browser/api/index.d.ts",
"default": "./dist/browser/api/index.js"
},
"react-native": {
"types": "./dist/react-native/api/index.d.ts",
"default": "./dist/react-native/api/index.js"
},
"import": {
"types": "./dist/esm/api/index.d.ts",
"default": "./dist/esm/api/index.js"
},
"require": {
"types": "./dist/commonjs/api/index.d.ts",
"default": "./dist/commonjs/api/index.js"
}
},
"./api/b": {
"browser": {
"types": "./dist/browser/api/b/index.d.ts",
"default": "./dist/browser/api/b/index.js"
},
"react-native": {
"types": "./dist/react-native/api/b/index.d.ts",
"default": "./dist/react-native/api/b/index.js"
},
"import": {
"types": "./dist/esm/api/b/index.d.ts",
"default": "./dist/esm/api/b/index.js"
},
"require": {
"types": "./dist/commonjs/api/b/index.d.ts",
"default": "./dist/commonjs/api/b/index.js"
}
},
"./api/b/e/c": {
"browser": {
"types": "./dist/browser/api/b/e/c/index.d.ts",
"default": "./dist/browser/api/b/e/c/index.js"
},
"react-native": {
"types": "./dist/react-native/api/b/e/c/index.d.ts",
"default": "./dist/react-native/api/b/e/c/index.js"
},
"import": {
"types": "./dist/esm/api/b/e/c/index.d.ts",
"default": "./dist/esm/api/b/e/c/index.js"
},
"require": {
"types": "./dist/commonjs/api/b/e/c/index.d.ts",
"default": "./dist/commonjs/api/b/e/c/index.js"
}
},
"./api/b/c": {
"browser": {
"types": "./dist/browser/api/b/c/index.d.ts",
"default": "./dist/browser/api/b/c/index.js"
},
"react-native": {
"types": "./dist/react-native/api/b/c/index.d.ts",
"default": "./dist/react-native/api/b/c/index.js"
},
"import": {
"types": "./dist/esm/api/b/c/index.d.ts",
"default": "./dist/esm/api/b/c/index.js"
},
"require": {
"types": "./dist/commonjs/api/b/c/index.d.ts",
"default": "./dist/commonjs/api/b/c/index.js"
}
},
"./api/d": {
"browser": {
"types": "./dist/browser/api/d/index.d.ts",
"default": "./dist/browser/api/d/index.js"
},
"react-native": {
"types": "./dist/react-native/api/d/index.d.ts",
"default": "./dist/react-native/api/d/index.js"
},
"import": {
"types": "./dist/esm/api/d/index.d.ts",
"default": "./dist/esm/api/d/index.js"
},
"require": {
"types": "./dist/commonjs/api/d/index.d.ts",
"default": "./dist/commonjs/api/d/index.js"
}
}
},
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts",
"module": "./dist/esm/index.js"
}
}

This file was deleted.

Loading
Loading