Remove the unused password input schema
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use mas_policy::model::{
|
||||
AuthorizationGrantInput, ClientRegistrationInput, EmailInput, PasswordInput, RegisterInput,
|
||||
AuthorizationGrantInput, ClientRegistrationInput, EmailInput, RegisterInput,
|
||||
};
|
||||
use schemars::{gen::SchemaSettings, JsonSchema};
|
||||
|
||||
@@ -45,5 +45,4 @@ fn main() {
|
||||
write_schema::<ClientRegistrationInput>(output_root, "client_registration_input.json");
|
||||
write_schema::<AuthorizationGrantInput>(output_root, "authorization_grant_input.json");
|
||||
write_schema::<EmailInput>(output_root, "email_input.json");
|
||||
write_schema::<PasswordInput>(output_root, "password_input.json");
|
||||
}
|
||||
|
||||
@@ -166,12 +166,5 @@ pub struct AuthorizationGrantInput<'a> {
|
||||
#[cfg_attr(feature = "jsonschema", derive(schemars::JsonSchema))]
|
||||
pub struct EmailInput<'a> {
|
||||
pub email: &'a str,
|
||||
}
|
||||
|
||||
/// Input for the password set policy.
|
||||
#[derive(Serialize, Debug)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[cfg_attr(feature = "jsonschema", derive(schemars::JsonSchema))]
|
||||
pub struct PasswordInput<'a> {
|
||||
pub password: &'a str,
|
||||
}
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "PasswordInput",
|
||||
"description": "Input for the password set policy.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"password"
|
||||
],
|
||||
"properties": {
|
||||
"password": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user