Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Releases: ml-archive/submissions

Use Validatable's conformance for UpdateRequest

06 Nov 08:25
07d14bf
Compare
Choose a tag to compare

This allows one to use the simpler Validatable conformance for creating validations instead of the one from UpdateRequest.

You can use this if you don't need the existing model nor the Request and if your validations don't need to be created asynchronously.

3.0.0 RC 5

21 Jul 09:48
f1ff7a4
Compare
Choose a tag to compare
3.0.0 RC 5 Pre-release
Pre-release

Compatibility with Vapor 4.22.0 and up.

Version 3.0.0 RC 4

05 Jun 13:03
a2e1b01
Compare
Choose a tag to compare
Version 3.0.0 RC 4 Pre-release
Pre-release

Changed

  • UpdateRequest no longer inherits from ValidatableRequest

Version 3.0.0 RC 3

03 Jun 18:08
6880fd8
Compare
Choose a tag to compare
Version 3.0.0 RC 3 Pre-release
Pre-release

Changed

  • use function name updateAuthenticatable for UpdateRequests where Model conforms to Authenticatable to prevent name clashes for other conditional extensions that could make sense in the future.

Version 3.0.0 RC 2

03 Jun 09:10
dc034dc
Compare
Choose a tag to compare
Version 3.0.0 RC 2 Pre-release
Pre-release

Changed

  • Replaced RequestInitializable with RequestMakeable which allows for asynchronous making of the conforming types

Version 3.0.0 RC 1

02 Jun 13:01
Compare
Choose a tag to compare
Version 3.0.0 RC 1 Pre-release
Pre-release

Changed

  • Added support for Vapor 4 🎉
  • Redesigned API

Version 2.1.0

15 May 09:51
9d7a925
Compare
Choose a tag to compare

Added

  • Added getAllErrors(on worker: Worker) to FieldCache: returns the errors for all fields.

Version 2.0.0 RC 8

14 Aug 14:09
7ae07f2
Compare
Choose a tag to compare
Version 2.0.0 RC 8 Pre-release
Pre-release

Added

  • OptionRepresentable protocol (and an extension of Sequence of OptionRepresentable) to make it possible to use the #submissions:selecttag
try req.view().render("index", ["roles": roles.allCases.makeOptions()] on: req)
  • Documentation for dealing with html forms (including the select tag)

Changed

  • The file input tag leaf file now treats the multiple keyword as a boolean parameter

Version 2.0.0 RC 7

05 Jun 08:55
7d0c69e
Compare
Choose a tag to compare
Version 2.0.0 RC 7 Pre-release
Pre-release

Added

  • A Leaf tag for the select HTML element. See #46 for an example of how to use it.

Version 2.0.0 RC 6

07 May 11:07
beb4648
Compare
Choose a tag to compare
Version 2.0.0 RC 6 Pre-release
Pre-release

Changed

  • Consistently default to false for isRequired for all Field initializers

Fixed

  • Fixed Swift 5 compiler warnings related to redundant access modifiers
  • Make sure a Submission made from a Submittable is also used for making the Submittable's additional fields in Submittable.makeFields