Skip to content
Closed
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
2 changes: 1 addition & 1 deletion packages/compiler/src/core/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2676,7 +2676,7 @@ function createParser(code: string | SourceFile, options: ParseOptions = {}): Pa
// Error recovery: If a list *is* surrounded by punctuation, then
// the list ends at statement keyword or end-of-file under the
// assumption that the closing delimiter is missing. This check is
// duplicated from above to preempt the parseExpected(delimeter)
// duplicated from above to preempt the parseExpected(delimiter)
// below.
if (parseExpected(kind.close)) {
mutate(r.range).end = previousTokenEnd;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface Operation extends Aspect {
signatureParameters?: Array<Parameter>;

/**
* Mapping of all the content types available for this operation to the coresponding request.
* Mapping of all the content types available for this operation to the corresponding request.
*/
requestMediaTypes?: Record<string, Request>;

Expand Down
2 changes: 1 addition & 1 deletion packages/http-client-python/generator/pygen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def __init__(self, *, output_folder: Union[str, Path], **kwargs: Any) -> None:
kwargs["output-folder"] = str(self.output_folder)
self.options = OptionsDict(kwargs)
if python_json:
_LOGGER.warning("Loading python.json file. This behavior will be depreacted")
_LOGGER.warning("Loading python.json file. This behavior will be deprecated")
self.options.update(python_json)

def read_file(self, path: Union[str, Path]) -> str:
Expand Down
2 changes: 1 addition & 1 deletion packages/http/src/content-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createDiagnostic } from "./lib.js";
/**
* Resolve the content types from a model property by looking at the value.
* @property property Model property
* @returns List of contnet types and any diagnostics if there was an issue.
* @returns List of content types and any diagnostics if there was an issue.
*/
export function getContentTypes(property: ModelProperty): [string[], readonly Diagnostic[]] {
const diagnostics = createDiagnosticCollector();
Expand Down
4 changes: 2 additions & 2 deletions packages/http/src/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function processResponseType(
treatContentTypeAsHeader: verb === "head",
}),
);
// Get explicity defined status codes
// Get explicitly defined status codes
const statusCodes: HttpStatusCodes = diagnostics.pipe(
getResponseStatusCodes(program, responseType, metadata),
);
Expand Down Expand Up @@ -183,7 +183,7 @@ function processResponseType(
}

/**
* Get explicity defined status codes from response type and metadata
* Get explicitly defined status codes from response type and metadata
* Return is an array of strings, possibly empty, which indicates no explicitly defined status codes.
* We do not check for duplicates here -- that will be done by the caller.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi3/test/parameters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ worksFor(supportedVersions, ({ diagnoseOpenApiFor, openApiFor, version }) => {
});
});

it("parmeter with default value and $ref wraps $ref in allOf in OpenAPI 3.0 only", async () => {
it("parameter with default value and $ref wraps $ref in allOf in OpenAPI 3.0 only", async () => {
const res = await openApiFor(
`
enum Example { a, b}
Expand Down
2 changes: 1 addition & 1 deletion packages/versioning/src/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ export function getUseDependencies(
while (current) {
const data = getNamespaceUseDependencyState(program, current);
if (!data) {
// See if the namspace has a version enum
// See if the namespace has a version enum
if (searchEnum) {
const versions = getVersion(program, current)?.getVersions();
if (versions?.length) {
Expand Down
Loading