This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
creationTimestamp: null | |
name: httpbin-proxy | |
data: | |
proxy.json: |- | |
{ | |
"target-url": "http://localhost:8000", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Cost } from '../interfaces/cost'; | |
import { Rental } from '../interfaces/rental'; | |
import { CostViewModel } from './cost.model'; | |
type NewRental = Omit<Rental, 'id' | 'createdAt' | 'updatedAt'>; | |
import { deserialize, Deserializer, Type } from 'typeserializer'; | |
export class RentalViewModel implements Rental { | |
id = null; | |
name = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Stephen Traiforos", | |
"image": "https://www.gravatar.com/avatar/2802aa3aba37aee55d3baf94b42e90bf", | |
"label": "Fullstack Software Engineer", | |
"email": "stephen@traiforos.com", | |
"phone": "(508) 494-5048", | |
"summary": "Passionate full stack engineer seeking a highly collaborative team environment with a variety of architectures and technical challenges. Self driven developer with a proven track record of providing innovative solutions while leading by example through a thoughtful understanding of the customer experience, business priorities, and market opportunity.", | |
"location": { | |
"postalCode": "MA 02119", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.validation.ConstraintValidator; | |
import javax.validation.ConstraintValidatorContext; | |
/** | |
* Created by: Fuxing | |
*/ | |
public class EnumValidator implements ConstraintValidator<ValidEnum, Enum> { | |
@Override | |
public boolean isValid(Enum value, ConstraintValidatorContext context) { | |
if (value == null) return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validate: validate the schema, makes no changes to the database. | |
update: update the schema. | |
create: creates the schema, destroying previous data. | |
create-drop: drop the schema at the end of the session. |