@microsoft/m365-spec-parser 0.2.3-alpha.c59b92632.0 → 0.2.3-alpha.decc8f69b.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@ export declare class ConstantString {
25
25
  static readonly GetMethod = "get";
26
26
  static readonly PostMethod = "post";
27
27
  static readonly AdaptiveCardVersion = "1.5";
28
- static readonly AdaptiveCardSchema = "http://adaptivecards.io/schemas/adaptive-card.json";
28
+ static readonly AdaptiveCardSchema = "https://adaptivecards.io/schemas/adaptive-card.json";
29
29
  static readonly AdaptiveCardType = "AdaptiveCard";
30
30
  static readonly TextBlockType = "TextBlock";
31
31
  static readonly ImageType = "Image";
@@ -99,8 +99,6 @@ export declare enum ErrorType {
99
99
  PostBodySchemaIsNotJson = "post-body-schema-is-not-json",
100
100
  PostBodyContainsRequiredUnsupportedSchema = "post-body-contains-required-unsupported-schema",
101
101
  ParamsContainRequiredUnsupportedSchema = "params-contain-required-unsupported-schema",
102
- ParamsContainsNestedObject = "params-contains-nested-object",
103
- RequestBodyContainsNestedObject = "request-body-contains-nested-object",
104
102
  ExceededRequiredParamsLimit = "exceeded-required-params-limit",
105
103
  NoParameter = "no-parameter",
106
104
  NoAPIInfo = "no-api-info",
@@ -2,7 +2,6 @@ import { OpenAPIV3 } from "openapi-types";
2
2
  import { AuthInfo, AuthType, ErrorResult, ParseOptions } from "./interfaces";
3
3
  import { IMessagingExtensionCommand, IParameter } from "@microsoft/teams-manifest";
4
4
  export declare class Utils {
5
- static hasNestedObjectInSchema(schema: OpenAPIV3.SchemaObject): boolean;
6
5
  static isObjectSchema(schema: OpenAPIV3.SchemaObject): boolean;
7
6
  static containMultipleMediaTypes(bodyObject: OpenAPIV3.RequestBodyObject | OpenAPIV3.ResponseObject): boolean;
8
7
  static isBearerTokenAuth(authScheme: AuthType): boolean;
@@ -19,7 +18,7 @@ export declare class Utils {
19
18
  static convertPathToCamelCase(path: string): string;
20
19
  static getUrlProtocol(urlString: string): string | undefined;
21
20
  static resolveEnv(str: string): string;
22
- static checkServerUrl(servers: OpenAPIV3.ServerObject[]): ErrorResult[];
21
+ static checkServerUrl(servers: OpenAPIV3.ServerObject[], allowHttp?: boolean): ErrorResult[];
23
22
  static validateServer(spec: OpenAPIV3.Document, options: ParseOptions): ErrorResult[];
24
23
  static isWellKnownName(name: string, wellknownNameList: string[]): boolean;
25
24
  static generateParametersFromSchema(schema: OpenAPIV3.SchemaObject, name: string, allowMultipleParameters: boolean, isRequired?: boolean): [IParameter[], IParameter[]];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/m365-spec-parser",
3
- "version": "0.2.3-alpha.c59b92632.0",
3
+ "version": "0.2.3-alpha.decc8f69b.0",
4
4
  "description": "OpenAPI specification files Parser for M365 Apps",
5
5
  "main": "dist/index.node.cjs.js",
6
6
  "browser": "dist/index.esm2017.js",
@@ -39,7 +39,7 @@
39
39
  "sideEffects": false,
40
40
  "dependencies": {
41
41
  "@apidevtools/swagger-parser": "^10.1.0",
42
- "@microsoft/teams-manifest": "0.1.7-alpha.c59b92632.0",
42
+ "@microsoft/teams-manifest": "0.1.7-alpha.decc8f69b.0",
43
43
  "fs-extra": "^11.2.0",
44
44
  "js-yaml": "^4.1.0",
45
45
  "openapi-types": "^7.2.3",
@@ -147,5 +147,5 @@
147
147
  "npx eslint --cache --fix --quiet"
148
148
  ]
149
149
  },
150
- "gitHead": "cf3e604d5a644c9d82498ad28179b6e4b4ad83e9"
150
+ "gitHead": "43597e952ccc123d711808c043914bafb2f6b39b"
151
151
  }