vovk-cli 0.0.1-draft.271 → 0.0.1-draft.274

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.
@@ -1,5 +1,5 @@
1
- import type { JSONSchema7 } from 'json-schema';
2
- import type { OpenAPIObject } from 'openapi3-ts/oas31';
1
+ import { JSONSchema7 } from 'json-schema';
2
+ import { OpenAPIObject } from 'openapi3-ts/oas31';
3
3
  interface CompileOptions {
4
4
  name: string;
5
5
  schema: JSONSchema7 & {
@@ -1,5 +1,5 @@
1
- import camelCase from 'lodash/camelCase.js';
2
1
  import upperFirst from 'lodash/upperFirst.js';
2
+ import camelCase from 'lodash/camelCase.js';
3
3
  export function compileTs(options) {
4
4
  const context = {
5
5
  refs: options.refs || new Map(),
@@ -236,6 +236,7 @@ function refToTypeName(ref) {
236
236
  // Extract the last part of the reference as the type name
237
237
  const parts = ref.split('/');
238
238
  const name = parts[parts.length - 1];
239
+ // Convert kebab-case to PascalCase
239
240
  return upperFirst(camelCase(name));
240
241
  }
241
242
  function capitalize(str) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.271",
3
+ "version": "0.0.1-draft.274",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },