System-Glitch
Repos
22
Followers
101
Following
21

🍐 Elegant Golang REST API Framework (v5 WIP)

1206
51

An example for a blog app made with the Goyave REST API framework

14
3

A minimal chat application to showcase Goyave's websocket features

8
0

Project Celeste's main website, made with Nuxt.js

4
2

Build, compare and share your Age of Empires Online units

2
0

A simple alternative to Remix IDE to develop and test Solidity Smart Contracts

91
15

Events

Validation: implement timezone validator

Validation: implement URL validator

Validation: implement UUID validator

Validation: date,timezone,url,uuid validators accept value if already converted

Validation: implement IP validator

Created at 6 days ago

Validation: make FileValidator IsType() return true

Validation: document nullable validator

Validation: document object validator

Validation: implement regex validator

Validation: implement alpha,digits,email validators

Validation: document required validator

Validation: document string validator

Validation: implement startsWith, endsWith validators

Created at 6 days ago

Validation: add MessagePlaceholders to file-related validators

Created at 1 week ago

Validation: implement date validators

Validation: implement distinct validator

Validation: implement in_field validators

Validation: implement file-related validators

Created at 1 week ago

Validation: use a different Extra map in Context and Options

Validation: Validators are now partial Components instead of passing DB, Config... through Context

Created at 1 week ago

Validation: add access to DB, Config, Logger, ErrLogger through validation.Context

Created at 1 week ago

Validation: MessagePlaceholders now take validation.Context as a parameter

Created at 1 week ago

WIP: Document validator package

Validation: add In and NotIn validators

Created at 1 week ago

Validation: remove ComparatorValidator interface since it's not useful anymore

Created at 1 week ago

Add walk.Path.First()

Created at 1 week ago

Validation: move required and nullable rules to their own files

Validation: add required_if

walk.Path: add Context.Break to stop iterating

Validation: fix nil pointer dereference if Field doesn't have at least one required rule

Created at 1 week ago

Validation: fix fieldName in validation error message

Created at 1 week ago

Fix lint issue

Created at 1 week ago

Validation: revamp RuleSet to always guarantee validation order

Created at 1 week ago

Validation: improve float range check in IntValidator

Created at 1 week ago

database.Migrate run all migrations in a transaction

Automatically add OPTIONS method to routes if CORS middleware is enabled

Created at 1 week ago

Export Component's Init function

Created at 1 week ago

Fix CI badge in README

Move global server, config and DB from globals to structs

Move lang from global to struct

Implement Context: a replacement for Request-Response tuple

Rewrite router for v5 + remove generic type to Handler and Context

Switch to interface-focused design

Remove Trim middleware

Remove Context

Route append middleware instead of replacing it

Signal hook use simple channel instead of select

Rewrite parse request middleware

Remove unused extra on query parse error

Fix parse middleware not working with non-json body

New validator WIP

Remove debug

Parse middleware prevent unnecessary form parsing from std lib

Allow validation of CurrentElement at root level

Validation handle root-level type conversion

Validation: rename IsJSON option to ConvertSingleValueArrays

Format lang docs

Created at 1 week ago

Update dependencies

Update github actions

Update golangci-lint

Recovery middleware: always gather stacktrace instead of only in debug mode

Fix CI badge in README

Created at 1 week ago

Fix CI badge in README

Created at 1 week ago

Add notice for keys used in the resources directory

Response.Error don't try to write error debug to response if response is not empty

Created at 2 weeks ago

Rename v5 Controller to Component

Implement log package for v5

Created at 2 weeks ago

Validation: sort keys by array dimension first + add object and JSON validators

Implement auth package for v5

Created at 2 weeks ago
issue comment
feat(Scopes): make Schema and Table accessible from scopes

Let me take a more advanced example to illustrate the benefits of this. I am working on a library that takes HTTP query parameters and turn them into an SQL query for easy and dynamic filtering, sorting, etc. I need the model information to generate a query that won't result in a DB error. I also use the model information to automatically generate joins when the user wants to filter the records based on a relation column.

Currently I am using a workaround to get the schema. With this change, the library wouldn't have to duplicate the schema parsing.

Here is a link to the library if you want more details: https://github.com/go-goyave/filter

However, I didn't knowclause.CurrentTable worked to that extent. It looks useful and covers a lot of cases.

Created at 3 weeks ago
create tag
System-Glitch create tag v4.5.0
Created at 3 weeks ago

Validation errors: add the ability to nest manual validation

Created at 3 weeks ago

Validation errors: add the ability to nest manual validation

Created at 3 weeks ago