Skip to content

Commit

Permalink
Remove shared model usages fo now
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard committed Apr 4, 2023
1 parent b14a08c commit a0a4a47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "@typespec/http";
import "@typespec/rest";
import "@typespec/versioning";
import "@azure-tools/typespec-azure-core";
import "../Contoso.WidgetManager.Shared";
//import "../Contoso.WidgetManager.Shared";

using TypeSpec.Http;
using TypeSpec.Rest;
Expand Down Expand Up @@ -32,8 +32,8 @@ model Widget {
@doc("The ID of the widget's manufacturer.")
manufacturerId: string;

@doc("The faked shared model.")
sharedModel?: FakedSharedModel;
// @doc("The faked shared model.")
// sharedModel?: FakedSharedModel;
}

interface Widgets {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,40 +420,6 @@
"modelAsString": true
}
},
"FakedSharedModel": {
"type": "object",
"properties": {
"tag": {
"type": "string",
"description": "The tag."
},
"createdDate": {
"type": "string",
"format": "date-time",
"description": "The created date."
}
},
"description": "Faked shared model",
"required": [
"tag",
"createdDate"
]
},
"FakedSharedModelUpdate": {
"type": "object",
"properties": {
"tag": {
"type": "string",
"description": "The tag."
},
"createdDate": {
"type": "string",
"format": "date-time",
"description": "The created date."
}
},
"description": "Faked shared model"
},
"Versions": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -481,10 +447,6 @@
"manufacturerId": {
"type": "string",
"description": "The ID of the widget's manufacturer."
},
"sharedModel": {
"$ref": "#/definitions/FakedSharedModel",
"description": "The faked shared model."
}
},
"description": "A widget.",
Expand All @@ -499,10 +461,6 @@
"manufacturerId": {
"type": "string",
"description": "The ID of the widget's manufacturer."
},
"sharedModel": {
"$ref": "#/definitions/FakedSharedModelUpdate",
"description": "The faked shared model."
}
},
"description": "A widget."
Expand Down

0 comments on commit a0a4a47

Please sign in to comment.