Browse Source

chore: swagger.json content type correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 1 year ago
parent
commit
a3343e8ac2
  1. 22
      packages/nocodb-nest/src/app.module.ts
  2. 4
      packages/nocodb-nest/src/schema/swagger.json
  3. 4
      packages/nocodb-sdk/package.json

22
packages/nocodb-nest/src/app.module.ts

@ -60,28 +60,6 @@ import type {
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
/*
export const JwtStrategyProvider: Provider = {
provide: JwtStrategy,
useFactory: async (usersService: UsersService) => {
const config = await NcConfigFactory.make();
const options = {
// ignoreExpiration: false,
jwtFromRequest: ExtractJwt.fromHeader('xc-auth'),
// expiresIn: '10h',
passReqToCallback: true,
secretOrKey: config.auth.jwt.secret,
...config.auth.jwt.options,
};
return new JwtStrategy(options, usersService);
},
inject: [UsersService],
};
*/
@Module({
imports: [
ServeStaticModule.forRoot({

4
packages/nocodb-nest/src/schema/swagger.json

@ -10886,10 +10886,10 @@
},
"requestBody": {
"content": {
"application/json": {
"multipart/form-data": {
"schema": {
"type": "object",
"description": "Data Object where the key is column and the value is the data value"
"properties": {}
},
"examples": {
"Example 1": {

4
packages/nocodb-sdk/package.json

@ -31,7 +31,7 @@
"test:prettier": "prettier \"src/**/*.ts\" --list-different",
"test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
"watch:build": "tsc -p tsconfig.json -w",
"generate:sdk": "npx --yes swagger-typescript-api@10.0.3 -r -p ../nocodb/src/schema/swagger.json -o ./src/lib/ --axios --unwrap-response-data --module-name-first-tag --type-suffix=Type --templates ../../scripts/sdk/templates"
"generate:sdk": "npx --yes swagger-typescript-api@10.0.3 -r -p ../nocodb-nest/src/schema/swagger.json -o ./src/lib/ --axios --unwrap-response-data --module-name-first-tag --type-suffix=Type --templates ../../scripts/sdk/templates"
},
"dependencies": {
"axios": "^0.21.1",
@ -63,4 +63,4 @@
"prettier": {
"singleQuote": true
}
}
}

Loading…
Cancel
Save