Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
fixing swagger (#49)
* test

* remove fake todos

* first todo

* adding read script metadata

* first upload

* update action and paths

* start error codes

* fix path

* cleaning up server

* improve logger

* update and improve error logging

* adding coverage

* throwing errors

* updatea ction

* todo_to_issue.yml aktualisieren

* es linting

* action and setting upconfig / npm

* update config

* fix eslintconfig

* test coverage #1

* shores, improve tests and extend functions

* new route for file, fixing tests

* patching and adding models

* adding folder for coverage

* adding descritpion for id

* adding create folder

* adding build infos and restructure models

* more tests

* parsing script

* change path for script

* patch schema

* tests for script and adding cards for demo

* card actions, script test etc.

* todos aufnehmen

* adding get user login

* adding user function

* fix dockerfile

* fixing docker postinstall

* updatetypes

* updated mongoose-to-swagger connection

* fixing test

* cleanup

* remove patch-package

* fixing broken objects in mongoose-to-swagger

* removing patches

* changes in lockfile

* update package-lock

* changes to cards and deck

* fixing scripts. test, script

* change insertion etc

* change file insert test todo

* Automatically added GitHub issue links to TODOs

* update packages

* changing user modifications and stuff

* changed settings and error message for test

* update of files

* fix path reduced course

* fixing schemas

* tests, test, test

* remove logging with tests

* schemas and middlewares

* schema api

* adding card functions and paths / demo data / todos

* Automatically added GitHub issue links to TODOs

* replacing login with mail and password

* fixing swagger

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
487c and github-actions[bot] authored Oct 20, 2024
commit e6516bdbe906f346b0a1637c074464875b6be608
8 changes: 6 additions & 2 deletions src/paths/user/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ POST.apiDoc = {
type: "object",
// required: ["login"],
properties: {
login: {
mail: {
type: String,
example: "johnwhoRidesDoes",
example: "[email protected]",
},
password: {
type: String,
example: "password",
},
},
},
Expand Down
7 changes: 4 additions & 3 deletions src/paths/user/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ export default function () {
$ref: "#/components/schemas/ReducedUser",
},
examples: {
PeterPan: {
'Max Mustermann': {
value: {
name: "Peter Pan",
login: "peterpanisSoooStronk",
name: "Maxi Mustermann",
password: "password",
mail: "[email protected]",
},
},
},
Expand Down
Loading