Skip to content

Commit

Permalink
fix: sort schemas after reading files (orval-labs#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnm-sxm committed Jan 23, 2024
1 parent ee5ec57 commit d0daa05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/orval/src/import-specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const resolveSpecs = async (

// normalizing slashes after SwaggerParser
return Object.fromEntries(
Object.entries(data).map(([key, value]) => [upath.resolve(key), value]),
Object.entries(data).sort().map(([key, value]) => [upath.resolve(key), value]),
);
} catch {
const file = await fs.readFile(path, 'utf8');
Expand Down

0 comments on commit d0daa05

Please sign in to comment.